home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Bus / A / 4D Speech Pack 2.0 Folder / Speech Pack Language Reference < prev   
MacOS Executable  |  1993-09-05  |  45.3 KB  |  [APPL/StAV]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacOS Executable (executable/macOSExecutable).

You can browse this item here: Speech Pack Language Reference

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Executable (executable/macOSExecutable) magic Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, bundle, Sun Jul 11 18:20:49 1993, modified Sun Sep 5 12:29:42 1993, creator 'StAV', type application, 31071 bytes "Speech Pack Language Reference" , at 0x79df 14984 bytes resource default (weak)
99% file data default
74% TrID Macintosh Application (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[APPL]
macFileCreator[StAV]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1e 53 70 65 65 63 68 | 20 50 61 63 6b 20 4c 61 |..Speech| Pack La|
|00000010| 6e 67 75 61 67 65 20 52 | 65 66 65 72 65 6e 63 65 |nguage R|eference|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 41 50 50 4c 53 74 41 | 56 21 00 00 00 00 00 00 |.APPLStA|V!......|
|00000050| 00 00 00 00 00 79 5f 00 | 00 3a 88 a8 66 42 c1 a8 |.....y_.|.:..fB..|
|00000060| af c4 76 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..v.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bc e7 00 00 |........|........|
|00000080| 43 48 4e 4b 01 00 00 00 | 00 06 00 00 00 00 00 00 |CHNK....|........|
|00000090| 66 6e 74 62 00 00 00 00 | 00 00 00 80 00 00 00 0e |fntb....|........|
|000000a0| 72 75 6e 73 00 00 00 00 | 00 00 00 8e 00 00 08 2c |runs....|.......,|
|000000b0| 73 74 74 62 00 00 00 00 | 00 00 08 ba 00 00 01 44 |sttb....|.......D|
|000000c0| 74 65 78 74 00 00 00 00 | 00 00 09 fe 00 00 6e cd |text....|......n.|
|000000d0| 70 72 65 63 00 00 00 00 | 00 00 78 cb 00 00 00 78 |prec....|..x....x|
|000000e0| 6a 75 73 74 00 00 00 00 | 00 00 79 43 00 00 00 02 |just....|..yC....|
|000000f0| 77 70 6f 73 00 00 00 00 | 00 00 79 45 00 00 00 1a |wpos....|..yE....|
|00000100| 06 47 65 6e 65 76 61 06 | 4d 6f 6e 61 63 6f 00 00 |.Geneva.|Monaco..|
|00000110| 00 01 00 13 00 02 00 73 | 00 10 00 87 00 06 01 30 |.......s|.......0|
|00000120| 00 00 05 6c 00 0a 05 76 | 00 00 05 8f 00 0a 05 9a |...l...v|........|
|00000130| 00 00 07 69 00 08 07 6a | 00 07 07 73 00 08 07 ab |...i...j|...s....|
|00000140| 00 07 07 b3 00 08 07 cd | 00 07 07 d5 00 08 07 e7 |........|........|
|00000150| 00 07 07 ef 00 08 08 0f | 00 07 08 15 00 08 08 1f |........|........|
|00000160| 00 00 09 3a 00 08 09 3b | 00 00 09 3c 00 02 09 46 |...:...;|...<...F|
|00000170| 00 0d 09 56 00 03 09 64 | 00 00 09 fb 00 05 0a 02 |...V...d|........|
|00000180| 00 04 0a 10 00 05 0a 23 | 00 00 0a 2e 00 05 0a 32 |.......#|.......2|
|00000190| 00 00 0a bc 00 05 0a c2 | 00 00 0b ab 00 0a 0b b7 |........|........|
|000001a0| 00 00 0b bc 00 0a 0b c5 | 00 00 0b e6 00 05 0b f0 |........|........|
|000001b0| 00 00 0e 97 00 0a 0e a1 | 00 00 0f 0c 00 08 0f 15 |........|........|
|000001c0| 00 0c 0f 22 00 08 0f 3e | 00 0c 0f 4b 00 08 0f 6c |..."...>|...K...l|
|000001d0| 00 0c 0f 79 00 08 0f 93 | 00 00 11 17 00 03 11 26 |...y....|.......&|
|000001e0| 00 00 11 75 00 05 11 7c | 00 04 11 8b 00 05 11 97 |...u...||........|
|000001f0| 00 00 11 a2 00 05 11 a6 | 00 00 12 30 00 05 12 3a |........|...0...:|
|00000200| 00 00 12 9d 00 0a 12 a7 | 00 00 13 20 00 0a 13 2c |........|... ...,|
|00000210| 00 00 13 30 00 0a 13 3a | 00 00 15 6e 00 08 15 77 |...0...:|...n...w|
|00000220| 00 0c 15 85 00 08 15 bd | 00 0c 15 cb 00 08 15 d0 |........|........|
|00000230| 00 00 17 5f 00 03 17 6f | 00 00 17 c6 00 05 17 cd |..._...o|........|
|00000240| 00 04 17 dd 00 05 17 ef | 00 00 17 fa 00 05 17 fe |........|........|
|00000250| 00 00 18 88 00 05 18 92 | 00 00 18 f3 00 0a 18 fd |........|........|
|00000260| 00 00 19 0c 00 05 19 11 | 00 00 1c ca 00 08 1c d3 |........|........|
|00000270| 00 0c 1c e2 00 08 1d 10 | 00 0c 1d 1f 00 08 1d 42 |........|.......B|
|00000280| 00 0c 1d 51 00 08 1d 6e | 00 0c 1d 7d 00 08 1d 98 |...Q...n|...}....|
|00000290| 00 00 1f 66 00 03 1f 74 | 00 00 20 0c 00 05 20 13 |...f...t|.. ... .|
|000002a0| 00 04 20 21 00 05 20 45 | 00 00 20 50 00 05 20 54 |.. !.. E|.. P.. T|
|000002b0| 00 00 20 de 00 05 20 e8 | 00 00 21 49 00 0a 21 53 |.. ... .|..!I..!S|
|000002c0| 00 00 21 62 00 05 21 68 | 00 00 21 c9 00 05 21 cf |..!b..!h|..!...!.|
|000002d0| 00 00 22 2e 00 09 22 3b | 00 00 22 40 00 09 22 4e |.."...";|.."@.."N|
|000002e0| 00 00 22 5e 00 05 22 63 | 00 00 22 c0 00 09 22 cd |.."^.."c|.."...".|
|000002f0| 00 00 22 d2 00 09 22 e1 | 00 00 27 47 00 08 27 69 |.."...".|..'G..'i|
|00000300| 00 07 27 6b 00 08 27 72 | 00 07 27 73 00 0c 27 80 |..'k..'r|..'s..'.|
|00000310| 00 08 27 a6 00 07 27 a8 | 00 08 27 af 00 07 27 b0 |..'...'.|..'...'.|
|00000320| 00 0c 27 bd 00 08 27 e3 | 00 07 27 e5 00 08 27 ec |..'...'.|..'...'.|
|00000330| 00 07 27 ed 00 0c 27 fa | 00 08 28 1c 00 07 28 1e |..'...'.|..(...(.|
|00000340| 00 08 28 25 00 07 28 26 | 00 0c 28 33 00 08 28 56 |..(%..(&|..(3..(V|
|00000350| 00 07 28 5d 00 08 28 a8 | 00 07 28 aa 00 08 28 b1 |..(]..(.|..(...(.|
|00000360| 00 07 28 b2 00 0c 28 bf | 00 08 28 e2 00 07 28 e9 |..(...(.|..(...(.|
|00000370| 00 08 29 55 00 07 29 57 | 00 08 29 5e 00 07 29 5f |..)U..)W|..)^..)_|
|00000380| 00 0c 29 6c 00 08 29 82 | 00 07 29 89 00 08 29 98 |..)l..).|..)...).|
|00000390| 00 00 2b 42 00 03 2b 50 | 00 00 2b 8d 00 05 2b 97 |..+B..+P|..+...+.|
|000003a0| 00 04 2b a4 00 05 2b b1 | 00 00 2b bc 00 05 2b c3 |..+...+.|..+...+.|
|000003b0| 00 00 2c aa 00 05 2c b4 | 00 00 2d 1e 00 0a 2d 28 |..,...,.|..-...-(|
|000003c0| 00 00 2d e0 00 08 2d e9 | 00 0c 2d f8 00 08 2e 1d |..-...-.|..-.....|
|000003d0| 00 07 2e 25 00 08 2e 26 | 00 0c 2e 33 00 07 2e 34 |...%...&|...3...4|
|000003e0| 00 08 2e 74 00 07 2e 7a | 00 08 2e 7c 00 07 2e 85 |...t...z|...|....|
|000003f0| 00 08 2e 89 00 03 2e 95 | 00 00 2e cd 00 05 2e d4 |........|........|
|00000400| 00 04 2e df 00 05 2e f9 | 00 00 2f 04 00 05 2f 08 |........|../.../.|
|00000410| 00 00 2f 92 00 05 2f 9c | 00 00 2f fd 00 0a 30 07 |../.../.|../...0.|
|00000420| 00 00 30 2d 00 05 30 35 | 00 00 30 7c 00 05 30 85 |..0-..05|..0|..0.|
|00000430| 00 00 30 c5 00 08 30 ce | 00 0c 30 d6 00 08 30 f1 |..0...0.|..0...0.|
|00000440| 00 00 31 ab 00 03 31 b7 | 00 00 31 ef 00 05 31 f6 |..1...1.|..1...1.|
|00000450| 00 04 32 01 00 05 32 1f | 00 00 32 2a 00 05 32 2e |..2...2.|..2*..2.|
|00000460| 00 00 32 b8 00 05 32 c2 | 00 00 33 23 00 0a 33 2d |..2...2.|..3#..3-|
|00000470| 00 00 33 53 00 05 33 5b | 00 00 34 10 00 05 34 19 |..3S..3[|..4...4.|
|00000480| 00 00 35 1d 00 0a 35 25 | 00 00 35 4d 00 08 35 56 |..5...5%|..5M..5V|
|00000490| 00 0c 35 5e 00 08 35 87 | 00 0c 35 8f 00 08 35 a5 |..5^..5.|..5...5.|
|000004a0| 00 00 36 5f 00 03 36 8c | 00 00 37 07 00 05 37 0e |..6_..6.|..7...7.|
|000004b0| 00 04 37 1b 00 05 37 2f | 00 04 37 3d 00 05 37 51 |..7...7/|..7=..7Q|
|000004c0| 00 04 37 5e 00 05 37 6b | 00 00 37 76 00 05 37 7a |..7^..7k|..7v..7z|
|000004d0| 00 00 38 04 00 05 38 0e | 00 00 38 6f 00 0a 38 79 |..8...8.|..8o..8y|
|000004e0| 00 00 39 ea 00 0d 39 f6 | 00 03 3a 06 00 00 3a 81 |..9...9.|..:...:.|
|000004f0| 00 05 3a 88 00 04 3a 98 | 00 05 3a a6 00 00 3a b1 |..:...:.|..:...:.|
|00000500| 00 05 3a b5 00 00 3b 3f | 00 05 3b 45 00 00 3c 2e |..:...;?|..;E..<.|
|00000510| 00 0a 3c 3a 00 00 3c 3f | 00 0a 3c 48 00 00 3c 69 |..<:..<?|..<H..<i|
|00000520| 00 05 3c 6e 00 00 3d 88 | 00 0a 3d 92 00 00 3e 3f |..<n..=.|..=...>?|
|00000530| 00 08 3e 48 00 0c 3e 57 | 00 08 3e 7e 00 0c 3e 8d |..>H..>W|..>~..>.|
|00000540| 00 08 3e a8 00 0c 3e b7 | 00 08 3e d0 00 00 40 b8 |..>...>.|..>...@.|
|00000550| 00 03 40 c6 00 00 41 75 | 00 05 41 7c 00 04 41 8a |..@...Au|..A|..A.|
|00000560| 00 05 41 aa 00 00 41 b5 | 00 05 41 b9 00 00 42 43 |..A...A.|..A...BC|
|00000570| 00 05 42 49 00 00 43 32 | 00 0a 43 3e 00 00 43 43 |..BI..C2|..C>..CC|
|00000580| 00 0a 43 4c 00 00 43 6d | 00 05 43 73 00 00 43 d4 |..CL..Cm|..Cs..C.|
|00000590| 00 05 43 da 00 00 44 39 | 00 09 44 46 00 00 44 4b |..C...D9|..DF..DK|
|000005a0| 00 09 44 59 00 00 44 69 | 00 05 44 6e 00 00 44 cb |..DY..Di|..Dn..D.|
|000005b0| 00 09 44 d8 00 00 44 dd | 00 09 44 ec 00 00 46 51 |..D...D.|..D...FQ|
|000005c0| 00 0a 46 5b 00 00 47 55 | 00 08 47 80 00 07 47 81 |..F[..GU|..G...G.|
|000005d0| 00 0c 47 8e 00 08 47 bb | 00 07 47 bc 00 0c 47 c9 |..G...G.|..G...G.|
|000005e0| 00 08 47 f6 00 07 47 f7 | 00 0c 48 04 00 08 48 2d |..G...G.|..H...H-|
|000005f0| 00 07 48 2e 00 0c 48 3b | 00 08 48 6c 00 07 48 6d |..H...H;|..Hl..Hm|
|00000600| 00 0c 48 7a 00 08 48 9b | 00 07 48 a2 00 08 48 f6 |..Hz..H.|..H...H.|
|00000610| 00 07 48 f7 00 0c 49 04 | 00 08 49 25 00 07 49 2c |..H...I.|..I%..I,|
|00000620| 00 08 49 a1 00 07 49 a2 | 00 0c 49 af 00 08 49 c3 |..I...I.|..I...I.|
|00000630| 00 07 49 ca 00 08 49 d8 | 00 07 49 d9 00 00 4b be |..I...I.|..I...K.|
|00000640| 00 0e 4b c0 00 0d 4b cc | 00 03 4b d9 00 00 4c 22 |..K...K.|..K...L"|
|00000650| 00 05 4c 2d 00 04 4c 39 | 00 05 4c 3a 00 00 4c 45 |..L-..L9|..L:..LE|
|00000660| 00 05 4c 4d 00 00 4c f9 | 00 0a 4d 02 00 00 4d a3 |..LM..L.|..M...M.|
|00000670| 00 0a 4d ac 00 00 4f 6c | 00 08 4f 7a 00 0c 4f 86 |..M...Ol|..Oz..O.|
|00000680| 00 08 4f 89 00 07 4f 8c | 00 08 4f 9b 00 07 4f a2 |..O...O.|..O...O.|
|00000690| 00 08 4f c3 00 07 4f cf | 00 08 4f ec 00 07 4f f3 |..O...O.|..O...O.|
|000006a0| 00 00 4f f5 00 03 50 00 | 00 00 50 4e 00 04 50 58 |..O...P.|..PN..PX|
|000006b0| 00 05 50 72 00 00 50 7d | 00 05 50 88 00 00 50 fa |..Pr..P}|..P...P.|
|000006c0| 00 05 51 05 00 00 51 c4 | 00 08 51 c6 00 0c 51 d0 |..Q...Q.|..Q...Q.|
|000006d0| 00 08 51 e6 00 09 51 e8 | 00 03 51 f8 00 00 52 51 |..Q...Q.|..Q...RQ|
|000006e0| 00 05 52 5a 00 04 52 69 | 00 05 52 6a 00 00 52 75 |..RZ..Ri|..Rj..Ru|
|000006f0| 00 05 52 7b 00 00 53 2b | 00 0a 53 34 00 00 53 41 |..R{..S+|..S4..SA|
|00000700| 00 08 53 4c 00 0c 53 5b | 00 08 53 5d 00 07 53 63 |..SL..S[|..S]..Sc|
|00000710| 00 08 53 72 00 07 53 78 | 00 08 53 79 00 0c 53 88 |..Sr..Sx|..Sy..S.|
|00000720| 00 08 54 00 00 07 54 03 | 00 08 54 0a 00 0c 54 19 |..T...T.|..T...T.|
|00000730| 00 08 54 41 00 0c 54 4d | 00 08 54 5f 00 07 54 66 |..TA..TM|..T_..Tf|
|00000740| 00 08 54 68 00 00 54 69 | 00 03 54 76 00 00 54 b5 |..Th..Ti|..Tv..T.|
|00000750| 00 05 54 bc 00 04 54 c8 | 00 05 54 d8 00 00 54 e3 |..T...T.|..T...T.|
|00000760| 00 05 54 e7 00 00 55 71 | 00 05 55 77 00 00 56 1e |..T...Uq|..Uw..V.|
|00000770| 00 05 56 24 00 00 59 ab | 00 08 59 df 00 0c 59 ee |..V$..Y.|..Y...Y.|
|00000780| 00 08 59 f9 00 0c 5a 05 | 00 08 5a 4b 00 0c 5a 57 |..Y...Z.|..ZK..ZW|
|00000790| 00 08 5a 96 00 0c 5a a2 | 00 08 5a a4 00 07 5a aa |..Z...Z.|..Z...Z.|
|000007a0| 00 08 5a e6 00 0c 5a f2 | 00 08 5a fb 00 00 5a fc |..Z...Z.|..Z...Z.|
|000007b0| 00 08 5b 22 00 07 5b 2e | 00 08 5b 3b 00 0c 5b 4a |..["..[.|..[;..[J|
|000007c0| 00 08 5b 55 00 0c 5b 61 | 00 08 5b 73 00 00 5c d8 |..[U..[a|..[s..\.|
|000007d0| 00 03 5c e6 00 00 5d 1e | 00 05 5d 25 00 04 5d 32 |..\...].|..]%..]2|
|000007e0| 00 05 5d 51 00 00 5d 5c | 00 05 5d 60 00 00 5d ea |..]Q..]\|..]`..].|
|000007f0| 00 05 5d f0 00 00 5e 4d | 00 05 5e 55 00 00 5e c0 |..]...^M|..^U..^.|
|00000800| 00 05 5e c7 00 00 5f 2d | 00 05 5f 31 00 00 60 12 |..^..._-|.._1..`.|
|00000810| 00 08 60 1b 00 0c 60 28 | 00 08 60 4e 00 0c 60 5b |..`...`(|..`N..`[|
|00000820| 00 08 60 86 00 0c 60 93 | 00 08 60 b7 00 00 62 02 |..`...`.|..`...b.|
|00000830| 00 03 62 0e 00 00 62 58 | 00 05 62 61 00 04 62 6c |..b...bX|..ba..bl|
|00000840| 00 05 62 6d 00 00 62 78 | 00 05 62 7e 00 00 63 dc |..bm..bx|..b~..c.|
|00000850| 00 0a 63 e8 00 00 63 ed | 00 0a 63 f7 00 00 64 1d |..c...c.|..c...d.|
|00000860| 00 0a 64 25 00 00 64 5a | 00 07 64 5c 00 08 64 5e |..d%..dZ|..d\..d^|
|00000870| 00 0c 64 69 00 08 64 79 | 00 0c 64 88 00 08 64 a8 |..di..dy|..d...d.|
|00000880| 00 07 64 ac 00 08 64 ad | 00 07 64 b4 00 08 64 de |..d...d.|..d...d.|
|00000890| 00 07 64 e4 00 08 64 e5 | 00 00 64 e7 00 03 64 f4 |..d...d.|..d...d.|
|000008a0| 00 00 65 31 00 04 65 3e | 00 05 65 48 00 00 65 53 |..e1..e>|..eH..eS|
|000008b0| 00 05 65 5b 00 00 66 16 | 00 08 66 17 00 0c 66 23 |..e[..f.|..f...f#|
|000008c0| 00 08 66 2f 00 07 66 35 | 00 08 66 43 00 0d 66 5a |..f/..f5|..fC..fZ|
|000008d0| 00 03 66 5e 00 00 66 e3 | 00 04 66 e7 00 05 67 0d |..f^..f.|..f...g.|
|000008e0| 00 00 67 18 00 05 67 1d | 00 00 67 6b 00 05 67 79 |..g...g.|..gk..gy|
|000008f0| 00 00 67 ec 00 05 67 f5 | 00 00 68 aa 00 05 68 b3 |..g...g.|..h...h.|
|00000900| 00 00 6e 3b 00 08 6e 3c | 00 0c 6e 3f 00 08 6e 52 |..n;..n<|..n?..nR|
|00000910| 00 0c 6e 55 00 08 6e 78 | 00 0c 6e 7b 00 08 6e 8a |..nU..nx|..n{..n.|
|00000920| 00 0c 6e 8d 00 08 6e a4 | 00 0c 6e a7 00 08 6e be |..n...n.|..n...n.|
|00000930| 00 0c 6e c1 00 08 6e ce | ff ff 00 8b 00 10 00 0c |..n...n.|........|
|00000940| ff ff 00 00 00 0c 00 00 | 00 00 00 00 00 01 00 30 |........|.......0|
|00000950| 00 24 ff ff 00 00 00 24 | 00 00 00 00 d4 00 00 02 |.$.....$|........|
|00000960| 00 13 00 0e ff ff 01 00 | 00 0e 00 00 00 00 d4 00 |........|........|
|00000970| 00 12 00 10 00 0c ff ff | 01 00 00 0c dd 6b 08 c2 |........|.....k..|
|00000980| 06 a2 00 14 00 10 00 0c | ff fe 03 00 00 0c 00 00 |........|........|
|00000990| 00 00 00 00 00 56 00 10 | 00 0c ff fe 00 00 00 0c |.....V..|........|
|000009a0| 00 00 00 00 00 00 00 01 | 00 0c 00 0a ff ff 00 00 |........|........|
|000009b0| 00 09 00 00 00 00 00 00 | 00 32 00 0b 00 09 ff fe |........|.2......|
|000009c0| 01 00 00 09 00 00 00 00 | 00 00 00 6c 00 0b 00 09 |........|...l....|
|000009d0| ff fe 00 00 00 09 00 00 | 00 00 00 00 00 09 00 10 |........|........|
|000009e0| 00 0c ff ff 01 00 00 0c | 00 00 00 00 00 00 00 1b |........|........|
|000009f0| 00 10 00 0c ff ff 03 00 | 00 0c 00 00 00 00 00 00 |........|........|
|00000a00| 00 00 00 0c 00 0a ff ff | 01 00 00 09 00 00 00 00 |........|........|
|00000a10| 00 00 00 37 00 0b 00 09 | ff fe 03 00 00 09 00 00 |...7....|........|
|00000a20| 00 00 00 00 00 04 00 17 | 00 12 ff ff 05 00 00 12 |........|........|
|00000a30| dd 6b 08 c2 06 a2 00 01 | 00 10 00 0c ff ff 00 00 |.k......|........|
|00000a40| 00 0c dd 6b 08 c2 06 a2 | 00 00 00 10 00 0c 00 04 |...k....|........|
|00000a50| 04 00 00 0c 00 00 00 00 | 00 00 00 01 00 17 00 12 |........|........|
|00000a60| ff ff 01 00 00 12 00 00 | 00 00 d4 00 00 00 00 0c |........|........|
|00000a70| 00 0a 00 03 03 00 00 09 | 00 00 00 00 00 00 34 44 |........|......4D|
|00000a80| 20 53 70 65 65 63 68 20 | 50 61 63 6b 20 32 2e 30 | Speech |Pack 2.0|
|00000a90| 0d 45 78 74 65 72 6e 61 | 6c 20 50 61 63 6b 61 67 |.Externa|l Packag|
|00000aa0| 65 20 66 6f 72 20 34 74 | 68 20 44 69 6d 65 6e 73 |e for 4t|h Dimens|
|00000ab0| 69 6f 6e 2e 0d 57 72 69 | 74 74 65 6e 20 62 79 20 |ion..Wri|tten by |
|00000ac0| 52 65 6e 8e 20 47 2e 41 | 2e 20 52 6f 73 2e 0d 45 |Ren. G.A|. Ros..E|
|00000ad0| 78 61 6d 70 6c 65 20 64 | 61 74 61 2d 62 61 73 65 |xample d|ata-base|
|00000ae0| 20 62 79 20 4b 79 6c 65 | 20 53 6d 69 74 68 2e 0d | by Kyle| Smith..|
|00000af0| 0d 4c 61 6e 67 75 61 67 | 65 20 52 65 66 65 72 65 |.Languag|e Refere|
|00000b00| 6e 63 65 0d 0d 53 65 65 | 20 22 53 70 65 65 63 68 |nce..See| "Speech|
|00000b10| 20 50 61 63 6b 20 44 65 | 73 69 67 6e 20 52 65 66 | Pack De|sign Ref|
|00000b20| 65 72 65 6e 63 65 22 20 | 66 6f 72 20 67 65 6e 65 |erence" |for gene|
|00000b30| 72 61 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |ral info|rmation,|
|00000b40| 20 73 79 73 74 65 6d 20 | 72 65 71 75 69 72 65 6d | system |requirem|
|00000b50| 65 6e 74 73 2c 20 63 6f | 70 79 72 69 67 68 74 20 |ents, co|pyright |
|00000b60| 65 74 63 2e 0d 52 65 61 | 64 20 74 68 65 20 44 65 |etc..Rea|d the De|
|00000b70| 73 69 67 6e 20 52 65 66 | 65 72 65 6e 63 65 20 62 |sign Ref|erence b|
|00000b80| 65 66 6f 72 65 20 79 6f | 75 20 73 74 61 72 74 20 |efore yo|u start |
|00000b90| 77 69 74 68 20 74 68 69 | 73 20 4c 61 6e 67 75 61 |with thi|s Langua|
|00000ba0| 67 65 20 52 65 66 65 72 | 65 6e 63 65 2e 0d 0d 50 |ge Refer|ence...P|
|00000bb0| 6f 73 74 63 61 72 64 77 | 61 72 65 2e 0d 0d 45 61 |ostcardw|are...Ea|
|00000bc0| 63 68 20 73 74 72 69 6e | 67 20 6f 72 20 74 65 78 |ch strin|g or tex|
|00000bd0| 74 20 63 61 6e 20 62 65 | 20 72 65 61 64 20 75 73 |t can be| read us|
|00000be0| 69 6e 67 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 |ing a di|fferent |
|00000bf0| 76 6f 69 63 65 2e 20 59 | 6f 75 20 73 70 65 63 69 |voice. Y|ou speci|
|00000c00| 66 79 20 74 68 65 20 74 | 79 70 65 20 6f 66 20 76 |fy the t|ype of v|
|00000c10| 6f 69 63 65 20 62 79 20 | 74 68 65 20 6e 61 6d 65 |oice by |the name|
|00000c20| 20 69 74 20 68 61 73 20 | 28 73 65 65 20 44 65 73 | it has |(see Des|
|00000c30| 69 67 6e 20 52 65 66 65 | 72 65 6e 63 65 20 66 6f |ign Refe|rence fo|
|00000c40| 72 20 61 20 6c 69 73 74 | 69 6e 67 20 6f 66 20 6e |r a list|ing of n|
|00000c50| 61 6d 65 73 29 2c 20 6f | 72 20 79 6f 75 20 75 73 |ames), o|r you us|
|00000c60| 65 20 61 6e 20 61 73 74 | 65 72 69 6b 20 28 2a 29 |e an ast|erik (*)|
|00000c70| 20 74 6f 20 75 73 65 20 | 74 68 65 20 53 70 65 65 | to use |the Spee|
|00000c80| 63 68 20 4d 61 6e 61 67 | 65 72 27 73 20 64 65 66 |ch Manag|er's def|
|00000c90| 61 75 6c 74 20 76 6f 69 | 63 65 2e 20 41 6e 79 20 |ault voi|ce. Any |
|00000ca0| 76 6f 69 63 65 20 6e 61 | 6d 65 20 79 6f 75 20 70 |voice na|me you p|
|00000cb0| 61 73 73 20 6d 75 73 74 | 20 62 65 20 74 68 65 20 |ass must| be the |
|00000cc0| 65 78 61 63 74 20 6e 61 | 6d 65 20 6f 66 20 61 20 |exact na|me of a |
|00000cd0| 76 6f 69 63 65 20 69 6e | 73 74 61 6c 6c 65 64 20 |voice in|stalled |
|00000ce0| 61 6e 64 20 69 73 20 63 | 61 73 65 2d 73 65 6e 73 |and is c|ase-sens|
|00000cf0| 69 74 69 76 65 2e 0d 54 | 68 65 20 77 69 6c 64 63 |itive..T|he wildc|
|00000d00| 61 72 64 20 27 23 27 20 | 69 73 20 61 6c 73 6f 20 |ard '#' |is also |
|00000d10| 70 6f 73 73 69 62 6c 65 | 2c 20 77 68 69 63 68 20 |possible|, which |
|00000d20| 67 69 76 65 73 20 79 6f | 75 20 61 20 72 6f 62 6f |gives yo|u a robo|
|00000d30| 74 20 76 6f 69 63 65 20 | 28 27 58 65 72 6f 27 20 |t voice |('Xero' |
|00000d40| 69 66 20 61 76 61 69 6c | 61 62 6c 65 20 6f 72 20 |if avail|able or |
|00000d50| 6f 74 68 65 72 77 69 73 | 65 20 74 68 65 20 66 69 |otherwis|e the fi|
|00000d60| 72 73 74 20 72 6f 62 6f | 74 20 76 6f 69 63 65 20 |rst robo|t voice |
|00000d70| 66 6f 75 6e 64 29 2e 0d | 42 75 74 20 73 75 70 70 |found)..|But supp|
|00000d80| 6f 73 65 20 74 68 65 72 | 65 20 61 72 65 20 74 77 |ose ther|e are tw|
|00000d90| 6f 20 76 6f 69 63 65 73 | 20 77 69 74 68 20 74 68 |o voices| with th|
|00000da0| 65 20 6e 61 6d 65 73 20 | 27 46 65 6d 61 6c 65 20 |e names |'Female |
|00000db0| 56 6f 69 63 65 27 20 61 | 6e 64 20 27 46 65 6d 61 |Voice' a|nd 'Fema|
|00000dc0| 6c 65 20 56 6f 69 63 65 | 2c 20 43 6f 6d 70 72 65 |le Voice|, Compre|
|00000dd0| 73 73 65 64 27 2e 20 49 | 66 20 79 6f 75 20 64 6f |ssed'. I|f you do|
|00000de0| 6e 27 74 20 6d 69 6e 64 | 20 77 68 69 63 68 20 6f |n't mind| which o|
|00000df0| 6e 65 20 69 73 20 75 73 | 65 64 20 74 68 65 6e 20 |ne is us|ed then |
|00000e00| 73 70 65 63 69 66 79 20 | 27 46 65 6d 61 6c 65 20 |specify |'Female |
|00000e10| 56 6f 69 63 65 27 2c 20 | 69 66 20 69 74 27 73 20 |Voice', |if it's |
|00000e20| 6e 6f 74 20 69 6e 73 74 | 61 6c 6c 65 64 20 74 68 |not inst|alled th|
|00000e30| 65 20 66 69 72 73 74 20 | 66 6f 75 6e 64 20 76 6f |e first |found vo|
|00000e40| 69 63 65 20 77 68 69 63 | 68 20 73 74 61 72 74 73 |ice whic|h starts|
|00000e50| 20 77 69 74 68 20 74 68 | 61 74 20 6e 61 6d 65 20 | with th|at name |
|00000e60| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 2e 20 54 68 |will be |used. Th|
|00000e70| 75 73 20 70 61 73 73 20 | 27 46 65 6d 61 6c 65 20 |us pass |'Female |
|00000e80| 56 6f 69 63 65 27 20 61 | 6e 64 20 69 66 20 69 74 |Voice' a|nd if it|
|00000e90| 27 73 20 6e 6f 74 20 69 | 6e 73 74 61 6c 6c 65 64 |'s not i|nstalled|
|00000ea0| 20 27 46 65 6d 61 6c 65 | 20 56 6f 69 63 65 2c 20 | 'Female| Voice, |
|00000eb0| 43 6f 6d 70 72 65 73 73 | 65 64 27 20 69 73 20 75 |Compress|ed' is u|
|00000ec0| 73 65 64 2e 20 54 68 65 | 20 6f 74 68 65 72 77 61 |sed. The| otherwa|
|00000ed0| 79 20 61 72 6f 75 6e 64 | 20 64 6f 65 73 6e 27 74 |y around| doesn't|
|00000ee0| 20 77 6f 72 6b 2e 0d 0d | 42 65 63 61 75 73 65 20 | work...|Because |
|00000ef0| 74 68 65 72 65 20 61 72 | 65 20 61 20 6c 6f 74 20 |there ar|e a lot |
|00000f00| 6f 66 20 74 68 69 6e 67 | 73 20 6f 75 74 73 69 64 |of thing|s outsid|
|00000f10| 65 20 34 44 20 61 6e 64 | 20 53 70 65 65 63 68 20 |e 4D and| Speech |
|00000f20| 50 61 63 6b 20 77 68 69 | 63 68 20 6d 61 79 20 63 |Pack whi|ch may c|
|00000f30| 68 61 6e 67 65 20 6f 72 | 20 68 61 76 65 20 61 6e |hange or| have an|
|00000f40| 20 65 66 66 65 63 74 20 | 6f 6e 20 74 68 65 20 73 | effect |on the s|
|00000f50| 70 65 65 63 68 20 79 6f | 75 20 6e 65 65 64 20 74 |peech yo|u need t|
|00000f60| 6f 20 63 68 65 63 6b 20 | 74 68 6f 72 6f 75 67 68 |o check |thorough|
|00000f70| 6c 79 20 74 68 65 20 65 | 72 72 6f 72 20 6e 75 6d |ly the e|rror num|
|00000f80| 62 65 72 73 20 72 65 74 | 75 72 6e 65 64 2e 20 44 |bers ret|urned. D|
|00000f90| 65 66 65 6e 73 69 76 65 | 20 70 72 6f 67 72 61 6d |efensive| program|
|00000fa0| 6d 69 6e 67 20 69 73 20 | 72 65 61 6c 6c 79 20 6e |ming is |really n|
|00000fb0| 65 63 65 73 73 61 72 79 | 2e 20 46 6f 72 20 65 78 |ecessary|. For ex|
|00000fc0| 61 6d 70 6c 65 2c 20 69 | 66 20 61 6e 20 65 72 72 |ample, i|f an err|
|00000fd0| 6f 72 20 69 73 20 72 65 | 70 6f 72 74 65 64 20 77 |or is re|ported w|
|00000fe0| 68 65 6e 20 75 73 69 6e | 67 20 4f 70 65 6e 20 56 |hen usin|g Open V|
|00000ff0| 6f 69 63 65 2c 20 79 6f | 75 20 64 6f 6e 27 74 20 |oice, yo|u don't |
|00001000| 6e 65 65 64 20 74 6f 20 | 63 61 6c 6c 20 43 6c 6f |need to |call Clo|
|00001010| 73 65 20 56 6f 69 63 65 | 20 73 69 6d 70 6c 79 20 |se Voice| simply |
|00001020| 62 65 63 61 75 73 65 20 | 6f 70 65 6e 69 6e 67 20 |because |opening |
|00001030| 66 61 69 6c 65 64 2e 0d | 0d 54 68 65 20 6c 65 6e |failed..|.The len|
|00001040| 67 74 68 20 73 70 65 63 | 69 66 69 65 64 20 77 69 |gth spec|ified wi|
|00001050| 74 68 20 61 20 73 74 72 | 69 6e 67 20 69 73 20 74 |th a str|ing is t|
|00001060| 68 65 20 6d 61 78 69 6d | 75 6d 20 6c 65 6e 67 74 |he maxim|um lengt|
|00001070| 68 20 6e 65 65 64 65 64 | 2e 20 54 68 65 20 65 78 |h needed|. The ex|
|00001080| 74 65 72 6e 61 6c 20 64 | 6f 65 73 20 6e 6f 74 20 |ternal d|oes not |
|00001090| 74 65 73 74 20 66 6f 72 | 20 74 68 65 20 73 69 7a |test for| the siz|
|000010a0| 65 20 6f 66 20 74 68 65 | 20 76 61 72 69 61 62 6c |e of the| variabl|
|000010b0| 65 73 2e 20 50 6c 65 61 | 73 65 2c 20 64 65 63 6c |es. Plea|se, decl|
|000010c0| 61 72 65 20 74 68 65 20 | 73 74 72 69 6e 67 20 79 |are the |string y|
|000010d0| 6f 75 20 75 73 65 20 74 | 6f 20 74 68 65 20 63 6f |ou use t|o the co|
|000010e0| 72 72 65 63 74 20 6c 65 | 6e 67 74 68 2e 20 55 73 |rrect le|ngth. Us|
|000010f0| 65 20 6f 66 20 74 68 65 | 73 65 20 63 6f 6d 6d 61 |e of the|se comma|
|00001100| 6e 64 73 20 69 6e 73 69 | 64 65 20 74 68 65 20 44 |nds insi|de the D|
|00001110| 65 62 75 67 67 65 72 20 | 77 69 6e 64 6f 77 20 69 |ebugger |window i|
|00001120| 73 20 6e 6f 74 20 72 65 | 63 6f 6d 6d 65 6e 64 65 |s not re|commende|
|00001130| 64 2e 0d 4e 6f 74 20 70 | 61 73 73 69 6e 67 20 70 |d..Not p|assing p|
|00001140| 61 72 61 6d 65 74 65 72 | 73 20 69 73 20 6e 6f 74 |arameter|s is not|
|00001150| 20 72 65 63 6f 6d 6d 65 | 6e 64 65 64 2c 20 62 75 | recomme|nded, bu|
|00001160| 74 20 69 66 20 79 6f 75 | 20 64 6f 20 6f 6e 6c 79 |t if you| do only|
|00001170| 20 74 68 6f 73 65 20 70 | 61 72 61 6d 65 74 65 72 | those p|arameter|
|00001180| 73 20 6c 69 73 74 65 64 | 20 69 6e 20 74 68 69 73 |s listed| in this|
|00001190| 20 72 65 66 65 72 65 6e | 63 65 20 77 69 74 68 20 | referen|ce with |
|000011a0| 63 75 72 6c 79 20 62 72 | 61 63 6b 65 74 73 20 27 |curly br|ackets '|
|000011b0| 7b 7d 27 2e 0d 0d 44 65 | 63 6c 61 72 61 74 69 6f |{}'...De|claratio|
|000011c0| 6e 73 20 66 6f 72 20 76 | 61 72 69 61 62 6c 65 73 |ns for v|ariables|
|000011d0| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 65 78 61 | used in| the exa|
|000011e0| 6d 70 6c 65 73 3a 0d ca | 43 5f 49 4e 54 45 47 45 |mples:..|C_INTEGE|
|000011f0| 52 20 28 24 65 72 72 3b | 24 73 70 65 65 63 68 72 |R ($err;|$speechr|
|00001200| 65 66 3b 24 63 6f 75 6e | 74 3b 24 67 65 6e 64 65 |ef;$coun|t;$gende|
|00001210| 72 3b 24 61 67 65 3b 24 | 72 61 74 65 3b 24 70 69 |r;$age;$|rate;$pi|
|00001220| 74 63 68 3b 24 69 29 0d | ca 43 5f 53 54 52 49 4e |tch;$i).|.C_STRIN|
|00001230| 47 20 28 31 35 3b 24 6d | 67 72 76 65 72 73 3b 24 |G (15;$m|grvers;$|
|00001240| 70 61 63 6b 76 65 72 73 | 29 0d ca 43 5f 53 54 52 |packvers|)..C_STR|
|00001250| 49 4e 47 20 28 36 33 3b | 24 76 6f 69 63 65 6e 61 |ING (63;|$voicena|
|00001260| 6d 65 29 0d ca 43 5f 53 | 54 52 49 4e 47 20 28 32 |me)..C_S|TRING (2|
|00001270| 35 35 3b 24 6c 69 6e 65 | 3b 24 63 6f 6d 6d 65 6e |55;$line|;$commen|
|00001280| 74 3b 24 6d 65 73 73 61 | 67 65 29 0d ca 43 5f 54 |t;$messa|ge)..C_T|
|00001290| 45 58 54 20 28 24 6c 69 | 6e 65 73 29 0d 49 20 75 |EXT ($li|nes).I u|
|000012a0| 73 65 64 20 6c 6f 63 61 | 6c 20 76 61 72 69 61 62 |sed loca|l variab|
|000012b0| 6c 65 73 20 69 6e 20 74 | 68 65 20 65 78 61 6d 70 |les in t|he examp|
|000012c0| 6c 65 73 20 62 75 74 20 | 61 6e 79 20 6f 74 68 65 |les but |any othe|
|000012d0| 72 20 74 79 70 65 20 69 | 73 20 66 69 6e 65 2e 20 |r type i|s fine. |
|000012e0| 49 6e 20 73 6f 6d 65 20 | 63 61 73 65 73 20 6c 69 |In some |cases li|
|000012f0| 6b 65 20 74 68 65 20 24 | 73 70 65 65 63 68 72 65 |ke the $|speechre|
|00001300| 66 20 79 6f 75 20 6d 61 | 79 20 77 61 6e 74 20 74 |f you ma|y want t|
|00001310| 6f 20 75 73 65 20 61 20 | 69 6e 74 65 72 70 72 6f |o use a |interpro|
|00001320| 63 65 73 73 20 76 61 72 | 69 61 62 6c 65 20 69 6e |cess var|iable in|
|00001330| 73 74 65 61 64 2e 0d 0d | 41 72 72 6f 77 73 20 61 |stead...|Arrows a|
|00001340| 72 65 20 70 6c 61 63 65 | 64 20 62 65 66 6f 72 65 |re place|d before|
|00001350| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 20 6e | the par|ameter n|
|00001360| 61 6d 65 2c 20 69 6e 64 | 69 63 61 74 69 6e 67 20 |ame, ind|icating |
|00001370| 74 68 65 20 6b 69 6e 64 | 20 6f 66 20 70 61 72 61 |the kind| of para|
|00001380| 6d 65 74 65 72 20 69 74 | 20 69 73 3a 0d ca 2d 3e |meter it| is:..->|
|00001390| ca ca 49 6e 70 75 74 20 | 70 61 72 61 6d 65 74 65 |..Input |paramete|
|000013a0| 72 0d ca 3c 2d ca ca 4f | 75 74 70 75 74 20 70 61 |r..<-..O|utput pa|
|000013b0| 72 61 6d 65 74 65 72 0d | 0d 0d 43 4f 4d 4d 41 4e |rameter.|..COMMAN|
|000013c0| 44 53 3a 0d 53 70 65 65 | 63 68 20 43 68 61 6e 6e |DS:.Spee|ch Chann|
|000013d0| 65 6c 73 0d 53 50 20 4f | 70 65 6e 20 56 6f 69 63 |els.SP O|pen Voic|
|000013e0| 65 0d 0d 53 65 74 73 20 | 75 70 20 61 20 73 70 65 |e..Sets |up a spe|
|000013f0| 65 63 68 20 63 68 61 6e | 6e 65 6c 20 61 6e 64 20 |ech chan|nel and |
|00001400| 72 65 74 75 72 6e 73 20 | 61 20 72 65 66 65 72 65 |returns |a refere|
|00001410| 6e 63 65 20 6e 75 6d 62 | 65 72 20 66 6f 72 20 79 |nce numb|er for y|
|00001420| 6f 75 20 74 6f 20 75 73 | 65 20 6c 61 74 65 72 20 |ou to us|e later |
|00001430| 77 69 74 68 20 6f 74 68 | 65 72 20 66 75 6e 63 74 |with oth|er funct|
|00001440| 69 6f 6e 73 2c 20 69 2e | 65 20 74 6f 20 73 70 65 |ions, i.|e to spe|
|00001450| 63 69 66 79 20 74 65 78 | 74 20 79 6f 75 20 77 61 |cify tex|t you wa|
|00001460| 6e 74 20 74 6f 20 62 65 | 20 73 70 6f 6b 65 6e 2e |nt to be| spoken.|
|00001470| 0d 0d 55 73 61 67 65 3a | 0d 65 72 72 20 3a 3d 20 |..Usage:|.err := |
|00001480| 53 50 20 4f 70 65 6e 20 | 56 6f 69 63 65 20 28 76 |SP Open |Voice (v|
|00001490| 6f 69 63 65 3b 20 72 65 | 66 65 72 65 6e 63 65 29 |oice; re|ference)|
|000014a0| 0d 0d 77 68 65 72 65 3a | 0d 3c 2d 20 65 72 72 0d |..where:|.<- err.|
|000014b0| 69 73 20 61 6e 20 69 6e | 74 65 67 65 72 20 72 65 |is an in|teger re|
|000014c0| 74 75 72 6e 69 6e 67 20 | 74 68 65 20 65 72 72 6f |turning |the erro|
|000014d0| 72 20 77 68 69 63 68 20 | 6f 63 63 75 72 65 64 2e |r which |occured.|
|000014e0| 20 41 20 76 61 6c 75 65 | 20 6f 66 20 7a 65 72 6f | A value| of zero|
|000014f0| 20 69 6e 64 69 63 61 74 | 65 73 20 6e 6f 20 65 72 | indicat|es no er|
|00001500| 72 6f 72 20 6f 63 63 75 | 72 65 64 2e 20 53 65 65 |ror occu|red. See|
|00001510| 20 62 65 6c 6f 77 20 66 | 6f 72 20 61 20 6c 69 73 | below f|or a lis|
|00001520| 74 20 6f 66 20 70 6f 73 | 73 69 62 6c 65 20 65 72 |t of pos|sible er|
|00001530| 72 6f 72 73 2e 0d 0d 2d | 3e 20 76 6f 69 63 65 0d |rors...-|> voice.|
|00001540| 69 73 20 61 20 73 74 72 | 69 6e 67 20 28 6c 65 6e |is a str|ing (len|
|00001550| 67 74 68 20 36 33 2c 20 | 63 61 73 65 2d 73 65 6e |gth 63, |case-sen|
|00001560| 73 69 74 69 76 65 29 20 | 73 70 65 63 69 66 79 69 |sitive) |specifyi|
|00001570| 6e 67 20 74 68 65 20 76 | 6f 69 63 65 20 79 6f 75 |ng the v|oice you|
|00001580| 20 77 61 6e 74 20 74 6f | 20 75 73 65 2e 20 53 65 | want to| use. Se|
|00001590| 65 20 74 68 65 20 6c 69 | 73 74 20 6f 66 20 61 76 |e the li|st of av|
|000015a0| 61 69 6c 61 62 6c 65 20 | 76 6f 69 63 65 73 20 69 |ailable |voices i|
|000015b0| 6e 63 6c 75 64 65 64 20 | 77 69 74 68 20 74 68 65 |ncluded |with the|
|000015c0| 20 53 70 65 65 63 68 20 | 4d 61 6e 61 67 65 72 20 | Speech |Manager |
|000015d0| 65 78 74 65 6e 73 69 6f | 6e 20 6f 72 20 69 6e 20 |extensio|n or in |
|000015e0| 61 6e 79 20 76 6f 69 63 | 65 20 66 69 6c 65 20 69 |any voic|e file i|
|000015f0| 6e 20 74 68 65 20 53 79 | 73 74 65 6d 20 46 6f 6c |n the Sy|stem Fol|
|00001600| 64 65 72 20 61 6e 64 2f | 6f 72 20 45 78 74 65 6e |der and/|or Exten|
|00001610| 73 69 6f 6e 73 20 46 6f | 6c 64 65 72 2c 20 6f 72 |sions Fo|lder, or|
|00001620| 20 75 73 65 20 74 68 65 | 20 43 6f 75 6e 74 20 76 | use the| Count v|
|00001630| 6f 69 63 65 73 20 61 6e | 64 20 56 6f 69 63 65 6e |oices an|d Voicen|
|00001640| 61 6d 65 20 74 6f 20 6f | 62 74 61 69 6e 20 74 68 |ame to o|btain th|
|00001650| 69 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 0d |is infor|mation..|
|00001660| 0d 3c 2d 20 72 65 66 65 | 72 65 6e 63 65 0d 69 73 |.<- refe|rence.is|
|00001670| 20 61 6e 20 69 6e 74 65 | 67 65 72 20 77 68 69 63 | an inte|ger whic|
|00001680| 68 20 72 65 74 75 72 6e | 73 20 61 20 6e 75 6d 62 |h return|s a numb|
|00001690| 65 72 20 79 6f 75 20 6e | 65 65 64 20 77 69 74 68 |er you n|eed with|
|000016a0| 20 6f 74 68 65 72 20 66 | 75 6e 63 74 69 6f 6e 73 | other f|unctions|
|000016b0| 20 74 6f 20 73 70 65 63 | 69 66 79 20 77 68 69 63 | to spec|ify whic|
|000016c0| 68 20 63 68 61 6e 6e 65 | 6c 20 79 6f 75 20 77 61 |h channe|l you wa|
|000016d0| 6e 74 20 74 6f 20 6f 70 | 65 72 61 74 65 20 6f 6e |nt to op|erate on|
|000016e0| 2e 0d 0d 54 68 65 72 65 | 20 63 61 6e 20 62 65 20 |...There| can be |
|000016f0| 61 20 6d 61 78 69 6d 75 | 6d 20 6f 66 20 66 69 76 |a maximu|m of fiv|
|00001700| 65 20 6f 70 65 6e 20 53 | 70 65 65 63 68 20 43 68 |e open S|peech Ch|
|00001710| 61 6e 6e 65 6c 73 2c 20 | 69 66 20 79 6f 75 20 74 |annels, |if you t|
|00001720| 72 79 20 74 6f 20 6f 70 | 65 6e 20 61 20 73 69 78 |ry to op|en a six|
|00001730| 74 68 20 61 6e 20 65 72 | 72 6f 72 20 77 69 6c 6c |th an er|ror will|
|00001740| 20 62 65 20 72 65 74 75 | 72 6e 65 64 20 28 2d 32 | be retu|rned (-2|
|00001750| 34 31 29 2e 20 54 68 69 | 73 20 69 73 20 61 6e 20 |41). Thi|s is an |
|00001760| 6c 69 6d 69 74 20 69 6d | 70 6f 73 65 64 20 62 79 |limit im|posed by|
|00001770| 20 74 68 65 20 65 78 74 | 65 72 6e 61 6c 20 61 6e | the ext|ernal an|
|00001780| 64 20 63 61 6e 20 65 61 | 73 69 6c 79 20 62 65 20 |d can ea|sily be |
|00001790| 69 6e 63 72 65 61 73 65 | 64 20 62 75 74 20 66 69 |increase|d but fi|
|000017a0| 76 65 20 73 65 65 6d 73 | 20 65 6e 6f 75 67 68 20 |ve seems| enough |
|000017b0| 74 6f 20 6d 65 2c 20 6f | 72 20 64 6f 20 79 6f 75 |to me, o|r do you|
|000017c0| 20 77 61 6e 74 20 79 6f | 75 72 20 63 6f 6d 70 75 | want yo|ur compu|
|000017d0| 74 65 72 20 74 6f 20 72 | 65 61 64 20 6f 75 74 20 |ter to r|ead out |
|000017e0| 74 68 65 20 6e 6f 74 65 | 73 20 6f 66 20 61 20 6c |the note|s of a l|
|000017f0| 61 72 67 65 20 6d 65 65 | 74 69 6e 67 20 77 69 74 |arge mee|ting wit|
|00001800| 68 20 65 61 63 68 20 6d | 65 6d 62 65 72 20 68 69 |h each m|ember hi|
|00001810| 73 2f 68 65 72 20 6f 77 | 6e 20 76 6f 69 63 65 3f |s/her ow|n voice?|
|00001820| 20 54 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6f | The num|ber of o|
|00001830| 70 65 6e 20 63 68 61 6e | 6e 65 6c 73 20 69 73 20 |pen chan|nels is |
|00001840| 61 6c 73 6f 20 6c 69 6d | 69 74 65 64 20 74 6f 20 |also lim|ited to |
|00001850| 74 68 65 20 6d 65 6d 6f | 72 79 20 61 76 61 69 6c |the memo|ry avail|
|00001860| 61 62 6c 65 2e 0d 59 6f | 75 20 61 72 65 20 61 6c |able..Yo|u are al|
|00001870| 6c 6f 77 65 64 20 74 6f | 20 6f 70 65 6e 20 6d 6f |lowed to| open mo|
|00001880| 72 65 20 74 68 61 6e 20 | 6f 6e 65 20 63 68 61 6e |re than |one chan|
|00001890| 6e 65 6c 20 75 73 69 6e | 67 20 74 68 65 20 73 61 |nel usin|g the sa|
|000018a0| 6d 65 20 76 6f 69 63 65 | 2e 0d 44 6f 20 6e 6f 74 |me voice|..Do not|
|000018b0| 20 73 61 76 65 20 74 68 | 65 20 72 65 66 65 72 65 | save th|e refere|
|000018c0| 6e 63 65 20 61 6e 79 77 | 65 72 65 20 62 65 63 61 |nce anyw|ere beca|
|000018d0| 75 73 65 20 69 74 20 69 | 73 20 6f 6e 6c 79 20 76 |use it i|s only v|
|000018e0| 61 6c 69 64 20 75 6e 74 | 69 6c 20 74 68 65 20 73 |alid unt|il the s|
|000018f0| 70 65 65 63 68 20 63 68 | 61 6e 6e 65 6c 20 69 73 |peech ch|annel is|
|00001900| 20 63 6c 6f 73 65 64 20 | 28 65 78 63 65 70 74 20 | closed |(except |
|00001910| 77 69 74 68 20 56 6f 69 | 63 65 20 62 75 73 79 29 |with Voi|ce busy)|
|00001920| 2e 20 41 6c 73 6f 20 64 | 6f 6e 27 74 20 61 73 73 |. Also d|on't ass|
|00001930| 75 6d 65 20 69 74 20 77 | 69 6c 6c 20 61 6c 77 61 |ume it w|ill alwa|
|00001940| 79 73 20 62 65 20 61 20 | 6e 75 6d 62 65 72 20 62 |ys be a |number b|
|00001950| 65 74 77 65 65 6e 20 31 | 20 61 6e 64 20 35 2c 20 |etween 1| and 5, |
|00001960| 74 68 69 73 20 6d 61 79 | 20 63 68 61 6e 67 65 20 |this may| change |
|00001970| 69 6e 20 74 68 65 20 66 | 75 74 75 72 65 2e 0d 0d |in the f|uture...|
|00001980| 45 78 61 6d 70 6c 65 73 | 3a 0d ca 24 65 72 72 20 |Examples|:..$err |
|00001990| 3a 3d 20 53 50 20 4f 70 | 65 6e 20 56 6f 69 63 65 |:= SP Op|en Voice|
|000019a0| 20 28 22 2a 22 3b 20 24 | 73 70 65 65 63 68 72 65 | ("*"; $|speechre|
|000019b0| 66 29 0d ca 24 65 72 72 | 20 3a 3d 20 53 50 20 4f |f)..$err| := SP O|
|000019c0| 70 65 6e 20 56 6f 69 63 | 65 20 28 22 4d 61 72 76 |pen Voic|e ("Marv|
|000019d0| 69 6e 22 3b 20 24 73 70 | 65 65 63 68 72 65 66 29 |in"; $sp|eechref)|
|000019e0| 0d ca 24 65 72 72 20 3a | 3d 20 53 50 20 4f 70 65 |..$err :|= SP Ope|
|000019f0| 6e 20 56 6f 69 63 65 20 | 28 24 76 6f 69 63 65 6e |n Voice |($voicen|
|00001a00| 61 6d 65 3b 20 24 73 70 | 65 65 63 68 72 65 66 29 |ame; $sp|eechref)|
|00001a10| 0d 0d 50 6f 73 73 69 62 | 6c 65 20 65 72 72 6f 72 |..Possib|le error|
|00001a20| 73 3a 0d ca ca ca ca 30 | ca ca 4e 6f 20 45 72 72 |s:.....0|..No Err|
|00001a30| 6f 72 0d ca ca ca 2d 34 | ca ca 53 70 65 65 63 68 |or....-4|..Speech|
|00001a40| 20 50 61 63 6b 20 63 61 | 6e 20 6e 6f 74 20 62 65 | Pack ca|n not be|
|00001a50| 20 75 73 65 64 20 28 53 | 70 65 65 63 68 20 4d 61 | used (S|peech Ma|
|00001a60| 6e 61 67 65 72 20 6e 6f | 74 20 61 76 61 69 6c 61 |nager no|t availa|
|00001a70| 62 6c 65 29 0d ca ca 2d | 35 30 ca ca 50 61 72 61 |ble)...-|50..Para|
|00001a80| 6d 65 74 65 72 20 65 72 | 72 6f 72 20 28 69 6e 73 |meter er|ror (ins|
|00001a90| 69 64 65 20 65 78 74 65 | 72 6e 61 6c 2c 20 6e 6f |ide exte|rnal, no|
|00001aa0| 74 20 6e 65 63 65 73 73 | 61 72 69 6c 79 20 74 68 |t necess|arily th|
|00001ab0| 65 20 70 61 72 61 6d 65 | 74 65 72 73 20 79 6f 75 |e parame|ters you|
|00001ac0| 20 70 61 73 73 29 0d ca | d0 31 30 38 ca ca 4e 6f | pass)..|.108..No|
|00001ad0| 74 20 65 6e 6f 75 67 68 | 20 6d 65 6d 6f 72 79 20 |t enough| memory |
|00001ae0| 74 6f 20 6c 6f 61 64 20 | 76 6f 69 63 65 20 69 6e |to load |voice in|
|00001af0| 74 6f 20 6d 65 6d 6f 72 | 79 0d ca d0 32 34 31 ca |to memor|y...241.|
|00001b00| ca 43 6f 75 6c 64 20 6e | 6f 74 20 6f 70 65 6e 20 |.Could n|ot open |
|00001b10| 61 6e 6f 74 68 65 72 20 | 73 70 65 65 63 68 20 73 |another |speech s|
|00001b20| 79 6e 74 68 65 73 69 7a | 65 72 20 63 68 61 6e 6e |ynthesiz|er chann|
|00001b30| 65 6c 09 0d ca 2d 32 34 | 34 ca ca 56 6f 69 63 65 |el...-24|4..Voice|
|00001b40| 20 72 65 73 6f 75 72 63 | 65 20 6e 6f 74 20 66 6f | resourc|e not fo|
|00001b50| 75 6e 64 0d 41 6e 64 20 | 6d 65 6d 6f 72 79 20 65 |und.And |memory e|
|00001b60| 72 72 6f 72 73 20 61 6e | 64 20 6f 74 68 65 72 20 |rrors an|d other |
|00001b70| 65 72 72 6f 72 73 20 41 | 70 70 6c 65 20 68 61 73 |errors A|pple has|
|00001b80| 6e 27 74 20 74 6f 6c 64 | 20 6d 65 20 61 62 6f 75 |n't told| me abou|
|00001b90| 74 2e 0d 0d 0d 53 50 20 | 43 6c 6f 73 65 20 56 6f |t....SP |Close Vo|
|00001ba0| 69 63 65 0d 0d 43 6c 6f | 73 65 73 20 74 68 65 20 |ice..Clo|ses the |
|00001bb0| 73 70 65 65 63 68 20 63 | 68 61 6e 6e 65 6c 20 79 |speech c|hannel y|
|00001bc0| 6f 75 20 73 70 65 63 69 | 66 79 20 77 68 65 6e 20 |ou speci|fy when |
|00001bd0| 79 6f 75 20 61 72 65 20 | 66 69 6e 69 73 68 65 64 |you are |finished|
|00001be0| 20 75 73 69 6e 67 20 69 | 74 2e 0d 0d 55 73 61 67 | using i|t...Usag|
|00001bf0| 65 3a 0d 65 72 72 20 3a | 3d 20 53 50 20 43 6c 6f |e:.err :|= SP Clo|
|00001c00| 73 65 20 56 6f 69 63 65 | 20 28 72 65 66 65 72 65 |se Voice| (refere|
|00001c10| 6e 63 65 29 0d 0d 77 68 | 65 72 65 3a 0d 3c 2d 20 |nce)..wh|ere:.<- |
|00001c20| 65 72 72 0d 69 73 20 61 | 6e 20 69 6e 74 65 67 65 |err.is a|n intege|
|00001c30| 72 20 72 65 74 75 72 6e | 69 6e 67 20 74 68 65 20 |r return|ing the |
|00001c40| 65 72 72 6f 72 20 77 68 | 69 63 68 20 6f 63 63 75 |error wh|ich occu|
|00001c50| 72 65 64 2e 20 41 20 76 | 61 6c 75 65 20 6f 66 20 |red. A v|alue of |
|00001c60| 7a 65 72 6f 20 69 6e 64 | 69 63 61 74 65 73 20 6e |zero ind|icates n|
|00001c70| 6f 20 65 72 72 6f 72 20 | 6f 63 63 75 72 65 64 2e |o error |occured.|
|00001c80| 20 53 65 65 20 62 65 6c | 6f 77 20 66 6f 72 20 61 | See bel|ow for a|
|00001c90| 20 6c 69 73 74 20 6f 66 | 20 70 6f 73 73 69 62 6c | list of| possibl|
|00001ca0| 65 20 65 72 72 6f 72 73 | 2e 0d 0d 2d 3e 20 72 65 |e errors|...-> re|
|00001cb0| 66 65 72 65 6e 63 65 0d | 69 73 20 61 6e 20 69 6e |ference.|is an in|
|00001cc0| 74 65 67 65 72 20 73 70 | 65 63 69 66 79 69 6e 67 |teger sp|ecifying|
|00001cd0| 20 74 68 65 20 63 68 61 | 6e 6e 65 6c 20 79 6f 75 | the cha|nnel you|
|00001ce0| 20 77 61 6e 74 20 74 6f | 20 63 6c 6f 73 65 2e 20 | want to| close. |
|00001cf0| 55 73 65 20 74 68 65 20 | 72 65 66 65 72 65 6e 63 |Use the |referenc|
|00001d00| 65 20 6e 75 6d 62 65 72 | 20 6f 62 74 61 69 6e 65 |e number| obtaine|
|00001d10| 64 20 66 72 6f 6d 20 74 | 68 65 20 4f 70 65 6e 20 |d from t|he Open |
|00001d20| 56 6f 69 63 65 20 66 75 | 6e 63 74 69 6f 6e 2e 0d |Voice fu|nction..|
|00001d30| 0d 42 65 20 73 75 72 65 | 20 6e 6f 74 20 74 6f 20 |.Be sure| not to |
|00001d40| 63 61 6c 6c 20 74 68 69 | 73 20 75 6e 74 69 6c 20 |call thi|s until |
|00001d50| 74 68 65 20 73 70 65 61 | 6b 69 6e 67 20 69 73 20 |the spea|king is |
|00001d60| 66 69 6e 69 73 68 65 64 | 20 6f 74 68 65 72 77 69 |finished| otherwi|
|00001d70| 73 65 20 69 74 20 77 69 | 6c 6c 20 73 74 6f 70 2e |se it wi|ll stop.|
|00001d80| 20 49 66 20 79 6f 75 20 | 64 6f 20 74 68 69 73 20 | If you |do this |
|00001d90| 72 69 67 68 74 20 61 66 | 74 65 72 20 61 20 56 6f |right af|ter a Vo|
|00001da0| 69 63 65 20 53 74 72 69 | 6e 67 20 6f 72 20 56 6f |ice Stri|ng or Vo|
|00001db0| 69 63 65 20 54 65 78 74 | 20 79 6f 75 20 77 69 6c |ice Text| you wil|
|00001dc0| 6c 20 68 65 61 72 20 6e | 6f 74 68 69 6e 67 20 61 |l hear n|othing a|
|00001dd0| 74 20 61 6c 6c 2e 0d 49 | 66 20 79 6f 75 20 64 6f |t all..I|f you do|
|00001de0| 6e 27 74 20 63 6c 6f 73 | 65 20 65 76 65 72 79 20 |n't clos|e every |
|00001df0| 63 68 61 6e 6e 65 6c 20 | 62 65 66 6f 72 65 20 34 |channel |before 4|
|00001e00| 44 20 71 75 69 74 73 20 | 74 68 65 20 65 78 74 65 |D quits |the exte|
|00001e10| 72 6e 61 6c 20 77 69 6c | 6c 20 64 6f 20 74 68 69 |rnal wil|l do thi|
|00001e20| 73 20 66 6f 72 20 79 6f | 75 2c 20 62 75 74 20 79 |s for yo|u, but y|
|00001e30| 6f 75 20 73 68 6f 75 6c | 64 20 74 72 79 20 74 6f |ou shoul|d try to|
|00001e40| 20 63 6c 6f 73 65 20 74 | 68 65 6d 20 79 6f 75 72 | close t|hem your|
|00001e50| 73 65 6c 66 20 70 72 6f | 70 65 72 6c 79 2e 0d 57 |self pro|perly..W|
|00001e60| 68 65 6e 20 79 6f 75 20 | 70 61 73 73 20 61 20 7a |hen you |pass a z|
|00001e70| 65 72 6f 20 76 61 6c 75 | 65 20 6f 72 20 6e 6f 20 |ero valu|e or no |
|00001e80| 72 65 66 65 72 65 6e 63 | 65 20 61 6c 6c 20 73 70 |referenc|e all sp|
|00001e90| 65 65 63 68 20 63 68 61 | 6e 6e 65 6c 73 20 77 69 |eech cha|nnels wi|
|00001ea0| 6c 6c 20 62 65 20 63 6c | 6f 73 65 64 20 61 6e 64 |ll be cl|osed and|
|00001eb0| 20 74 65 78 74 20 73 74 | 69 6c 6c 20 73 74 6f 72 | text st|ill stor|
|00001ec0| 65 64 20 69 6e 20 6d 65 | 6d 6f 72 79 20 77 69 6c |ed in me|mory wil|
|00001ed0| 6c 20 62 65 20 64 69 73 | 70 6f 73 65 64 2e 20 55 |l be dis|posed. U|
|00001ee0| 73 65 20 74 68 69 73 20 | 4f 4e 4c 59 20 77 68 65 |se this |ONLY whe|
|00001ef0| 6e 20 64 65 76 65 6c 6f | 70 69 6e 67 20 61 20 64 |n develo|ping a d|
|00001f00| 61 74 61 2d 62 61 73 65 | 20 74 6f 20 68 65 6c 70 |ata-base| to help|
|00001f10| 20 77 68 65 6e 20 61 6e | 20 65 72 72 6f 72 20 6f | when an| error o|
|00001f20| 63 63 75 72 65 64 20 61 | 6e 64 20 79 6f 75 20 6c |ccured a|nd you l|
|00001f30| 6f 73 74 20 74 68 65 20 | 72 65 66 65 72 65 6e 63 |ost the |referenc|
|00001f40| 65 20 76 61 6c 75 65 20 | 6f 66 20 6f 6e 65 20 6f |e value |of one o|
|00001f50| 72 20 6d 6f 72 65 20 73 | 70 65 65 63 68 20 63 68 |r more s|peech ch|
|00001f60| 61 6e 6e 65 6c 73 2e 20 | 49 74 20 73 68 6f 75 6c |annels. |It shoul|
|00001f70| 64 20 6e 6f 74 20 62 65 | 20 70 72 65 73 65 6e 74 |d not be| present|
|00001f80| 20 69 6e 20 66 69 6e 69 | 73 68 65 64 20 64 61 74 | in fini|shed dat|
|00001f90| 61 2d 62 61 73 65 73 2e | 20 4e 6f 20 65 72 72 6f |a-bases.| No erro|
|00001fa0| 72 20 69 73 20 72 65 70 | 6f 72 74 65 64 20 61 6e |r is rep|orted an|
|00001fb0| 64 20 6f 6e 6c 79 20 74 | 77 6f 20 65 72 72 6f 72 |d only t|wo error|
|00001fc0| 20 6e 75 6d 62 65 72 73 | 20 6d 61 79 20 62 65 20 | numbers| may be |
|00001fd0| 72 65 74 75 72 6e 65 64 | 20 28 2d 34 2c 20 30 29 |returned| (-4, 0)|
|00001fe0| 2e 0d 0d 45 78 61 6d 70 | 6c 65 3a 0d ca 24 65 72 |...Examp|le:..$er|
|00001ff0| 72 20 3a 3d 20 53 50 20 | 43 6c 6f 73 65 20 56 6f |r := SP |Close Vo|
|00002000| 69 63 65 20 28 24 73 70 | 65 65 63 68 72 65 66 29 |ice ($sp|eechref)|
|00002010| 0d 0d ca 60 74 6f 20 63 | 6c 6f 73 65 20 61 6c 6c |...`to c|lose all|
|00002020| 20 73 70 65 65 63 68 20 | 63 68 61 6e 6e 65 6c 73 | speech |channels|
|00002030| 3a 0d ca 24 65 72 72 20 | 3a 3d 20 53 50 20 43 6c |:..$err |:= SP Cl|
|00002040| 6f 73 65 20 56 6f 69 63 | 65 20 28 30 29 0d 0d 50 |ose Voic|e (0)..P|
|00002050| 6f 73 73 69 62 6c 65 20 | 65 72 72 6f 72 73 3a 0d |ossible |errors:.|
|00002060| ca ca ca ca 30 ca ca 4e | 6f 20 45 72 72 6f 72 0d |....0..N|o Error.|
|00002070| ca ca ca 2d 34 ca ca 53 | 70 65 65 63 68 20 50 61 |...-4..S|peech Pa|
|00002080| 63 6b 20 63 61 6e 20 6e | 6f 74 20 62 65 20 75 73 |ck can n|ot be us|
|00002090| 65 64 20 28 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |ed (Spee|ch Manag|
|000020a0| 65 72 20 6e 6f 74 20 61 | 76 61 69 6c 61 62 6c 65 |er not a|vailable|
|000020b0| 29 0d ca 2d 31 31 31 ca | ca 54 72 69 65 64 20 74 |)..-111.|.Tried t|
|000020c0| 6f 20 64 69 73 70 6f 73 | 65 20 61 6e 20 61 6c 72 |o dispos|e an alr|
|000020d0| 65 61 64 79 20 64 69 73 | 70 6f 73 65 64 20 6e 6f |eady dis|posed no|
|000020e0| 6e 2d 72 65 6c 6f 63 61 | 74 61 62 6c 65 20 62 6c |n-reloca|table bl|
|000020f0| 6f 63 6b 0d ca 2d 32 33 | 31 ca ca 46 65 61 74 75 |ock..-23|1..Featu|
|00002100| 72 65 20 69 73 20 6e 6f | 74 20 69 6d 70 6c 65 6d |re is no|t implem|
|00002110| 65 6e 74 65 64 20 6f 6e | 20 73 79 6e 74 68 65 73 |ented on| synthes|
|00002120| 69 7a 65 72 0d ca 2d 32 | 34 30 ca ca 43 6f 75 6c |izer..-2|40..Coul|
|00002130| 64 20 6e 6f 74 20 66 69 | 6e 64 20 74 68 65 20 73 |d not fi|nd the s|
|00002140| 70 65 63 69 66 69 65 64 | 20 73 70 65 65 63 68 20 |pecified| speech |
|00002150| 73 79 6e 74 68 65 73 69 | 7a 65 72 2c 20 63 68 61 |synthesi|zer, cha|
|00002160| 6e 6e 65 6c 20 61 6c 72 | 65 61 64 79 20 63 6c 6f |nnel alr|eady clo|
|00002170| 73 65 64 2e 0d d0 33 30 | 30 30 ca ca 49 6e 76 61 |sed...30|00..Inva|
|00002180| 6c 69 64 20 53 70 65 65 | 63 68 43 68 61 6e 6e 65 |lid Spee|chChanne|
|00002190| 6c 20 70 61 72 61 6d 65 | 74 65 72 0d 41 6e 64 20 |l parame|ter.And |
|000021a0| 6d 65 6d 6f 72 79 20 65 | 72 72 6f 72 73 20 61 6e |memory e|rrors an|
|000021b0| 64 20 6f 74 68 65 72 20 | 65 72 72 6f 72 73 20 41 |d other |errors A|
|000021c0| 70 70 6c 65 20 68 61 73 | 6e 27 74 20 74 6f 6c 64 |pple has|n't told|
|000021d0| 20 6d 65 20 61 62 6f 75 | 74 2e 0d 0d 0d 53 50 20 | me abou|t....SP |
|000021e0| 56 6f 69 63 65 20 53 74 | 72 69 6e 67 0d 0d 53 70 |Voice St|ring..Sp|
|000021f0| 65 61 6b 73 20 74 68 65 | 20 73 74 72 69 6e 67 20 |eaks the| string |
|00002200| 79 6f 75 20 70 61 73 73 | 20 75 73 69 6e 67 20 74 |you pass| using t|
|00002210| 68 65 20 76 6f 69 63 65 | 20 6f 66 20 74 68 65 20 |he voice| of the |
|00002220| 73 70 65 65 63 68 20 63 | 68 61 6e 6e 65 6c 20 79 |speech c|hannel y|
|00002230| 6f 75 20 73 70 65 63 69 | 66 79 2e 0d 0d 55 73 61 |ou speci|fy...Usa|
|00002240| 67 65 3a 0d 65 72 72 20 | 3a 3d 20 53 50 20 56 6f |ge:.err |:= SP Vo|
|00002250| 69 63 65 20 53 74 72 69 | 6e 67 20 28 72 65 66 65 |ice Stri|ng (refe|
|00002260| 72 65 6e 63 65 3b 20 6c | 69 6e 65 29 0d 0d 77 68 |rence; l|ine)..wh|
|00002270| 65 72 65 3a 0d 3c 2d 20 | 65 72 72 0d 69 73 20 61 |ere:.<- |err.is a|
|00002280| 6e 20 69 6e 74 65 67 65 | 72 20 72 65 74 75 72 6e |n intege|r return|
|00002290| 69 6e 67 20 74 68 65 20 | 65 72 72 6f 72 20 77 68 |ing the |error wh|
|000022a0| 69 63 68 20 6f 63 63 75 | 72 65 64 2e 20 41 20 76 |ich occu|red. A v|
|000022b0| 61 6c 75 65 20 6f 66 20 | 7a 65 72 6f 20 69 6e 64 |alue of |zero ind|
|000022c0| 69 63 61 74 65 73 20 6e | 6f 20 65 72 72 6f 72 20 |icates n|o error |
|000022d0| 6f 63 63 75 72 65 64 2e | 20 53 65 65 20 62 65 6c |occured.| See bel|
|000022e0| 6f 77 20 66 6f 72 20 61 | 20 6c 69 73 74 20 6f 66 |ow for a| list of|
|000022f0| 20 70 6f 73 73 69 62 6c | 65 20 65 72 72 6f 72 73 | possibl|e errors|
|00002300| 2e 0d 0d 2d 3e 20 72 65 | 66 65 72 65 6e 63 65 0d |...-> re|ference.|
|00002310| 69 73 20 61 6e 20 69 6e | 74 65 67 65 72 20 73 70 |is an in|teger sp|
|00002320| 65 63 69 66 79 69 6e 67 | 20 74 68 65 20 63 68 61 |ecifying| the cha|
|00002330| 6e 6e 65 6c 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |nnel you| want to|
|00002340| 20 75 73 65 2e 20 55 73 | 65 20 74 68 65 20 72 65 | use. Us|e the re|
|00002350| 66 65 72 65 6e 63 65 20 | 6e 75 6d 62 65 72 20 6f |ference |number o|
|00002360| 62 74 61 69 6e 65 64 20 | 66 72 6f 6d 20 74 68 65 |btained |from the|
|00002370| 20 4f 70 65 6e 20 56 6f | 69 63 65 20 66 75 6e 63 | Open Vo|ice func|
|00002380| 74 69 6f 6e 2e 0d 0d 2d | 3e 20 6c 69 6e 65 0d 69 |tion...-|> line.i|
|00002390| 73 20 61 20 73 74 72 69 | 6e 67 20 28 6c 65 6e 67 |s a stri|ng (leng|
|000023a0| 74 68 20 32 35 35 29 20 | 77 68 69 63 68 20 63 6f |th 255) |which co|
|000023b0| 6e 74 61 69 6e 73 20 74 | 68 65 20 74 65 78 74 20 |ntains t|he text |
|000023c0| 74 68 61 74 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |that you| want to|
|000023d0| 20 62 65 20 73 70 6f 6b | 65 6e 2e 0d 0d 54 68 65 | be spok|en...The|
|000023e0| 20 6c 69 6e 65 20 79 6f | 75 20 70 61 73 73 20 69 | line yo|u pass i|
|000023f0| 73 20 63 6f 70 69 65 64 | 20 61 6e 64 20 74 68 69 |s copied| and thi|
|00002400| 73 20 63 6f 70 79 20 69 | 73 20 75 73 65 64 20 74 |s copy i|s used t|
|00002410| 6f 20 73 70 65 61 6b 2e | 20 59 6f 75 20 74 68 65 |o speak.| You the|
|00002420| 6e 20 63 61 6e 20 64 6f | 20 77 68 61 74 65 76 65 |n can do| whateve|
|00002430| 72 20 79 6f 75 20 77 61 | 6e 74 2c 20 69 6e 63 6c |r you wa|nt, incl|
|00002440| 75 64 69 6e 67 20 75 6e | 6c 6f 61 64 2f 63 61 6e |uding un|load/can|
|00002450| 63 65 6c 20 61 6e 79 20 | 72 65 63 6f 72 64 20 6f |cel any |record o|
|00002460| 72 20 63 6c 65 61 72 69 | 6e 67 20 61 20 76 61 72 |r cleari|ng a var|
|00002470| 69 61 62 6c 65 20 6f 72 | 20 66 69 65 6c 64 20 61 |iable or| field a|
|00002480| 66 74 65 72 20 63 61 6c | 6c 69 6e 67 20 74 68 69 |fter cal|ling thi|
|00002490| 73 20 66 75 6e 63 74 69 | 6f 6e 2e 20 54 68 65 20 |s functi|on. The |
|000024a0| 74 65 78 74 20 73 74 61 | 79 73 20 69 6e 20 6d 65 |text sta|ys in me|
|000024b0| 6d 6f 72 79 20 61 66 74 | 65 72 20 73 70 65 61 6b |mory aft|er speak|
|000024c0| 69 6e 67 20 69 73 20 66 | 69 6e 69 73 68 65 64 2c |ing is f|inished,|
|000024d0| 20 75 6e 74 69 6c 20 61 | 6e 6f 74 68 65 72 20 63 | until a|nother c|
|000024e0| 61 6c 6c 20 69 73 20 6d | 61 64 65 20 74 6f 20 6f |all is m|ade to o|
|000024f0| 6e 65 20 6f 66 20 74 68 | 65 20 66 75 6e 63 74 69 |ne of th|e functi|
|00002500| 6f 6e 73 20 69 6e 20 74 | 68 69 73 20 27 53 70 65 |ons in t|his 'Spe|
|00002510| 65 63 68 20 43 68 61 6e | 6e 65 6c 73 27 20 67 72 |ech Chan|nels' gr|
|00002520| 6f 75 70 2c 20 72 65 67 | 61 72 64 6c 65 73 73 20 |oup, reg|ardless |
|00002530| 6f 66 20 74 68 65 20 73 | 70 65 65 63 68 20 63 68 |of the s|peech ch|
|00002540| 61 6e 6e 65 6c 20 72 65 | 66 65 72 65 6e 63 65 20 |annel re|ference |
|00002550| 79 6f 75 20 70 61 73 73 | 2e 0d 49 66 20 74 68 65 |you pass|..If the|
|00002560| 20 73 70 65 63 69 66 69 | 65 64 20 73 70 65 65 63 | specifi|ed speec|
|00002570| 68 20 63 68 61 6e 6e 65 | 6c 20 69 73 20 61 6c 72 |h channe|l is alr|
|00002580| 65 61 64 79 20 73 70 65 | 61 6b 69 6e 67 20 74 65 |eady spe|aking te|
|00002590| 78 74 2c 20 74 68 69 73 | 20 77 69 6c 6c 20 62 65 |xt, this| will be|
|000025a0| 20 73 74 6f 70 70 65 64 | 20 69 6d 6d 65 64 69 61 | stopped| immedia|
|000025b0| 74 6c 79 2e 0d 0d 57 69 | 74 68 20 74 68 69 73 20 |tly...Wi|th this |
|000025c0| 63 6f 6d 6d 61 6e 64 20 | 79 6f 75 20 63 61 6e 20 |command |you can |
|000025d0| 61 6c 73 6f 20 70 61 73 | 73 20 74 68 65 20 6e 75 |also pas|s the nu|
|000025e0| 6d 62 65 72 20 61 6e 64 | 20 69 6e 64 65 78 20 6f |mber and| index o|
|000025f0| 66 20 61 20 53 54 52 23 | 20 72 65 73 6f 75 72 63 |f a STR#| resourc|
|00002600| 65 20 69 6e 20 74 68 65 | 20 66 6f 72 6d 61 74 20 |e in the| format |
|00002610| 22 3a 6e 75 6d 62 65 72 | 2c 69 6e 64 65 78 22 20 |":number|,index" |
|00002620| 69 6e 20 74 68 65 20 6c | 69 6e 65 20 70 61 72 61 |in the l|ine para|
|00002630| 6d 65 74 65 72 2e 20 42 | 79 20 64 6f 69 6e 67 20 |meter. B|y doing |
|00002640| 74 68 69 73 20 74 68 65 | 20 73 74 72 69 6e 67 20 |this the| string |
|00002650| 69 6e 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |in the r|esource |
|00002660| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 2e 20 49 66 |will be |used. If|
|00002670| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 69 73 | the res|ource is|
|00002680| 20 6e 6f 74 20 66 6f 75 | 6e 64 2c 20 6e 6f 74 68 | not fou|nd, noth|
|00002690| 69 6e 67 20 77 69 6c 6c | 20 62 65 20 73 61 69 64 |ing will| be said|
|000026a0| 20 61 6e 64 20 61 6e 79 | 20 65 61 72 6c 69 65 72 | and any| earlier|
|000026b0| 20 73 74 61 72 74 65 64 | 20 73 70 65 61 6b 69 6e | started| speakin|
|000026c0| 67 20 69 73 20 6e 6f 74 | 20 73 74 6f 70 70 65 64 |g is not| stopped|
|000026d0| 2c 20 62 75 74 20 61 6e | 20 65 72 72 6f 72 20 69 |, but an| error i|
|000026e0| 73 20 72 65 74 75 72 6e | 65 64 20 28 2d 31 39 32 |s return|ed (-192|
|000026f0| 29 2e 20 54 68 65 20 72 | 65 73 6f 75 72 63 65 20 |). The r|esource |
|00002700| 63 61 6e 20 62 65 20 69 | 6e 20 74 68 65 20 73 74 |can be i|n the st|
|00002710| 72 75 63 74 75 72 65 20 | 66 69 6c 65 2c 20 34 44 |ructure |file, 4D|
|00002720| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6f 72 20 | applica|tion or |
|00002730| 73 79 73 74 65 6d 20 66 | 69 6c 65 2e 0d 0d 45 78 |system f|ile...Ex|
|00002740| 61 6d 70 6c 65 73 3a 0d | ca 24 65 72 72 20 3a 3d |amples:.|.$err :=|
|00002750| 20 53 50 20 56 6f 69 63 | 65 20 53 74 72 69 6e 67 | SP Voic|e String|
|00002760| 20 28 24 73 70 65 65 63 | 68 72 65 66 3b 22 4c 6f | ($speec|href;"Lo|
|00002770| 6f 6b 20 77 68 6f 20 69 | 73 20 74 61 6c 6b 69 6e |ok who i|s talkin|
|00002780| 67 21 22 29 0d ca 24 65 | 72 72 20 3a 3d 20 53 50 |g!")..$e|rr := SP|
|00002790| 20 56 6f 69 63 65 20 53 | 74 72 69 6e 67 20 28 24 | Voice S|tring ($|
|000027a0| 73 70 65 65 63 68 72 65 | 66 3b 22 3a 2d 31 36 33 |speechre|f;":-163|
|000027b0| 39 35 2c 37 22 29 0d ca | 24 65 72 72 20 3a 3d 20 |95,7")..|$err := |
|000027c0| 53 50 20 56 6f 69 63 65 | 20 53 74 72 69 6e 67 20 |SP Voice| String |
|000027d0| 28 24 73 70 65 65 63 68 | 72 65 66 3b 24 6c 69 6e |($speech|ref;$lin|
|000027e0| 65 29 0d ca 24 65 72 72 | 20 3a 3d 20 53 50 20 56 |e)..$err| := SP V|
|000027f0| 6f 69 63 65 20 53 74 72 | 69 6e 67 20 28 24 73 70 |oice Str|ing ($sp|
|00002800| 65 65 63 68 72 65 66 3b | 5b 46 69 6c 65 20 31 5d |eechref;|[File 1]|
|00002810| 4e 61 6d 65 29 0d 0d 50 | 6f 73 73 69 62 6c 65 20 |Name)..P|ossible |
|00002820| 65 72 72 6f 72 73 3a 0d | ca ca ca ca 30 ca ca 4e |errors:.|....0..N|
|00002830| 6f 20 45 72 72 6f 72 0d | ca ca ca 2d 34 ca ca 53 |o Error.|...-4..S|
|00002840| 70 65 65 63 68 20 50 61 | 63 6b 20 63 61 6e 20 6e |peech Pa|ck can n|
|00002850| 6f 74 20 62 65 20 75 73 | 65 64 20 28 53 70 65 65 |ot be us|ed (Spee|
|00002860| 63 68 20 4d 61 6e 61 67 | 65 72 20 6e 6f 74 20 61 |ch Manag|er not a|
|00002870| 76 61 69 6c 61 62 6c 65 | 29 0d ca d0 31 30 38 ca |vailable|)...108.|
|00002880| ca 4e 6f 74 20 65 6e 6f | 75 67 68 20 6d 65 6d 6f |.Not eno|ugh memo|
|00002890| 72 79 20 74 6f 20 6c 6f | 61 64 20 76 6f 69 63 65 |ry to lo|ad voice|
|000028a0| 20 69 6e 74 6f 20 6d 65 | 6d 6f 72 79 09 0d ca 2d | into me|mory...-|
|000028b0| 31 31 31 ca ca 54 72 69 | 65 64 20 74 6f 20 64 69 |111..Tri|ed to di|
|000028c0| 73 70 6f 73 65 20 61 6e | 20 61 6c 72 65 61 64 79 |spose an| already|
|000028d0| 20 64 69 73 70 6f 73 65 | 64 20 6e 6f 6e 2d 72 65 | dispose|d non-re|
|000028e0| 6c 6f 63 61 74 61 62 6c | 65 20 62 6c 6f 63 6b 0d |locatabl|e block.|
|000028f0| ca 2d 31 39 32 ca ca 53 | 74 72 69 6e 67 20 72 65 |.-192..S|tring re|
|00002900| 73 6f 75 72 63 65 20 6e | 6f 74 20 66 6f 75 6e 64 |source n|ot found|
|00002910| 2e 0d ca 2d 32 33 31 ca | ca 46 65 61 74 75 72 65 |...-231.|.Feature|
|00002920| 20 6e 6f 74 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 | not imp|lemented|
|00002930| 20 6f 6e 20 73 79 6e 74 | 68 65 73 69 7a 65 72 0d | on synt|hesizer.|
|00002940| ca 2d 32 34 32 ca ca 56 | 6f 69 63 65 20 73 79 6e |.-242..V|oice syn|
|00002950| 74 68 65 73 69 7a 65 72 | 20 69 73 20 6e 6f 74 20 |thesizer| is not |
|00002960| 72 65 61 64 79 0d ca 2d | 32 34 37 ca ca 49 6e 70 |ready..-|247..Inp|
|00002970| 75 74 20 74 65 78 74 20 | 62 61 64 0d d0 33 30 30 |ut text |bad..300|
|00002980| 30 ca ca 49 6e 76 61 6c | 69 64 20 53 70 65 65 63 |0..Inval|id Speec|
|00002990| 68 43 68 61 6e 6e 65 6c | 20 70 61 72 61 6d 65 74 |hChannel| paramet|
|000029a0| 65 72 0d 41 6e 64 20 6d | 65 6d 6f 72 79 20 65 72 |er.And m|emory er|
|000029b0| 72 6f 72 73 20 61 6e 64 | 20 6f 74 68 65 72 20 65 |rors and| other e|
|000029c0| 72 72 6f 72 73 20 41 70 | 70 6c 65 20 68 61 73 6e |rrors Ap|ple hasn|
|000029d0| 27 74 20 74 6f 6c 64 20 | 6d 65 20 61 62 6f 75 74 |'t told |me about|
|000029e0| 2e 0d 0d 0d 53 50 20 56 | 6f 69 63 65 20 54 65 78 |....SP V|oice Tex|
|000029f0| 74 0d 0d 53 70 65 61 6b | 73 20 74 68 65 20 74 65 |t..Speak|s the te|
|00002a00| 78 74 20 79 6f 75 20 70 | 61 73 73 20 75 73 69 6e |xt you p|ass usin|
|00002a10| 67 20 74 68 65 20 76 6f | 69 63 65 20 6f 66 20 74 |g the vo|ice of t|
|00002a20| 68 65 20 73 70 65 65 63 | 68 20 63 68 61 6e 6e 65 |he speec|h channe|
|00002a30| 6c 20 79 6f 75 20 73 70 | 65 63 69 66 79 2e 20 59 |l you sp|ecify. Y|
|00002a40| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 73 70 65 63 |ou can a|lso spec|
|00002a50| 69 66 79 20 61 74 20 77 | 68 69 63 68 20 6c 6f 63 |ify at w|hich loc|
|00002a60| 61 74 69 6f 6e 20 74 6f | 20 73 74 61 72 74 20 61 |ation to| start a|
|00002a70| 6e 64 20 73 74 6f 70 20 | 73 70 65 61 6b 69 6e 67 |nd stop |speaking|
|00002a80| 2e 0d 0d 55 73 61 67 65 | 3a 0d 65 72 72 20 3a 3d |...Usage|:.err :=|
|00002a90| 20 53 50 20 56 6f 69 63 | 65 20 54 65 78 74 20 28 | SP Voic|e Text (|
|00002aa0| 72 65 66 65 72 65 6e 63 | 65 3b 20 6c 69 6e 65 73 |referenc|e; lines|
|00002ab0| 3b 20 7b 66 69 72 73 74 | 7d 3b 20 7b 6c 61 73 74 |; {first|}; {last|
|00002ac0| 7d 29 0d 0d 77 68 65 72 | 65 3a 0d 3c 2d 20 65 72 |})..wher|e:.<- er|
|00002ad0| 72 0d 69 73 20 61 6e 20 | 69 6e 74 65 67 65 72 20 |r.is an |integer |
|00002ae0| 72 65 74 75 72 6e 69 6e | 67 20 74 68 65 20 65 72 |returnin|g the er|
|00002af0| 72 6f 72 20 77 68 69 63 | 68 20 6f 63 63 75 72 65 |ror whic|h occure|
|00002b00| 64 2e 20 41 20 76 61 6c | 75 65 20 6f 66 20 7a 65 |d. A val|ue of ze|
|00002b10| 72 6f 20 69 6e 64 69 63 | 61 74 65 73 20 6e 6f 20 |ro indic|ates no |
|00002b20| 65 72 72 6f 72 20 6f 63 | 63 75 72 65 64 2e 20 53 |error oc|cured. S|
|00002b30| 65 65 20 62 65 6c 6f 77 | 20 66 6f 72 20 61 20 6c |ee below| for a l|
|00002b40| 69 73 74 20 6f 66 20 70 | 6f 73 73 69 62 6c 65 20 |ist of p|ossible |
|00002b50| 65 72 72 6f 72 73 2e 0d | 0d 2d 3e 20 72 65 66 65 |errors..|.-> refe|
|00002b60| 72 65 6e 63 65 0d 69 73 | 20 61 6e 20 69 6e 74 65 |rence.is| an inte|
|00002b70| 67 65 72 20 73 70 65 63 | 69 66 79 69 6e 67 20 74 |ger spec|ifying t|
|00002b80| 68 65 20 63 68 61 6e 6e | 65 6c 20 79 6f 75 20 77 |he chann|el you w|
|00002b90| 61 6e 74 20 74 6f 20 75 | 73 65 2e 20 55 73 65 20 |ant to u|se. Use |
|00002ba0| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 6e 75 |the refe|rence nu|
|00002bb0| 6d 62 65 72 20 6f 62 74 | 61 69 6e 65 64 20 66 72 |mber obt|ained fr|
|00002bc0| 6f 6d 20 74 68 65 20 4f | 70 65 6e 20 56 6f 69 63 |om the O|pen Voic|
|00002bd0| 65 20 66 75 6e 63 74 69 | 6f 6e 2e 0d 0d 2d 3e 20 |e functi|on...-> |
|00002be0| 6c 69 6e 65 73 0d 69 73 | 20 61 20 74 65 78 74 20 |lines.is| a text |
|00002bf0| 76 61 72 69 61 62 6c 65 | 20 6f 72 20 66 69 65 6c |variable| or fiel|
|00002c00| 64 20 28 6c 65 6e 67 74 | 68 20 33 32 4b 29 20 77 |d (lengt|h 32K) w|
|00002c10| 68 69 63 68 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |hich con|tains th|
|00002c20| 65 20 74 65 78 74 20 74 | 68 61 74 20 79 6f 75 20 |e text t|hat you |
|00002c30| 77 61 6e 74 20 74 6f 20 | 62 65 20 73 70 6f 6b 65 |want to |be spoke|
|00002c40| 6e 2e 0d 0d 2d 3e 20 66 | 69 72 73 74 0d 69 73 20 |n...-> f|irst.is |
|00002c50| 61 6e 20 69 6e 74 65 67 | 65 72 20 73 70 65 63 69 |an integ|er speci|
|00002c60| 66 79 69 6e 67 20 6f 6e | 20 77 68 69 63 68 20 6c |fying on| which l|
|00002c70| 6f 63 61 74 69 6f 6e 20 | 74 6f 20 73 74 61 72 74 |ocation |to start|
|00002c80| 20 72 65 61 64 69 6e 67 | 20 28 6c 69 6b 65 20 74 | reading| (like t|
|00002c90| 68 65 20 27 66 69 72 73 | 74 27 20 70 61 72 61 6d |he 'firs|t' param|
|00002ca0| 65 74 65 72 20 6f 66 20 | 74 68 65 20 47 45 54 20 |eter of |the GET |
|00002cb0| 48 49 47 48 4c 49 47 48 | 54 20 61 6e 64 20 48 49 |HIGHLIGH|T and HI|
|00002cc0| 47 48 4c 49 47 48 54 20 | 54 45 58 54 20 63 6f 6d |GHLIGHT |TEXT com|
|00002cd0| 6d 61 6e 64 73 29 2e 0d | 0d 2d 3e 20 6c 61 73 74 |mands)..|.-> last|
|00002ce0| 0d 69 73 20 61 6e 20 69 | 6e 74 65 67 65 72 20 73 |.is an i|nteger s|
|00002cf0| 70 65 63 69 66 79 69 6e | 67 20 6f 6e 20 77 68 69 |pecifyin|g on whi|
|00002d00| 63 68 20 6c 6f 63 61 74 | 69 6f 6e 20 74 6f 20 73 |ch locat|ion to s|
|00002d10| 74 6f 70 20 72 65 61 64 | 69 6e 67 20 28 6c 69 6b |top read|ing (lik|
|00002d20| 65 20 74 68 65 20 27 6c | 61 73 74 27 20 70 61 72 |e the 'l|ast' par|
|00002d30| 61 6d 65 74 65 72 20 6f | 66 20 74 68 65 20 47 45 |ameter o|f the GE|
|00002d40| 54 20 48 49 47 48 4c 49 | 47 48 54 20 61 6e 64 20 |T HIGHLI|GHT and |
|00002d50| 48 49 47 48 4c 49 47 48 | 54 20 54 45 58 54 20 63 |HIGHLIGH|T TEXT c|
|00002d60| 6f 6d 6d 61 6e 64 73 29 | 2e 0d 54 68 69 73 20 69 |ommands)|..This i|
|00002d70| 73 20 74 68 65 20 70 6f | 73 69 74 69 6f 6e 20 6f |s the po|sition o|
|00002d80| 66 20 74 68 65 20 6c 61 | 73 74 20 63 68 61 72 61 |f the la|st chara|
|00002d90| 63 74 65 72 20 73 65 6c | 65 63 74 65 64 20 70 6c |cter sel|ected pl|
|00002da0| 75 73 20 6f 6e 65 21 20 | 53 65 65 20 74 68 65 20 |us one! |See the |
|00002db0| 34 44 20 4c 61 6e 67 75 | 61 67 65 20 52 65 66 65 |4D Langu|age Refe|
|00002dc0| 72 65 6e 63 65 20 61 62 | 6f 75 74 20 74 68 65 20 |rence ab|out the |
|00002dd0| 74 77 6f 20 34 44 20 63 | 6f 6d 6d 61 6e 64 73 20 |two 4D c|ommands |
|00002de0| 6d 65 6e 74 69 6f 6e 65 | 64 2e 0d 0d 54 68 65 20 |mentione|d...The |
|00002df0| 73 70 65 63 69 66 69 65 | 64 20 70 61 72 74 20 6f |specifie|d part o|
|00002e00| 66 20 74 68 65 20 74 65 | 78 74 20 77 69 6c 6c 20 |f the te|xt will |
|00002e10| 62 65 20 73 70 6f 6b 65 | 6e 20 61 6e 64 20 63 6f |be spoke|n and co|
|00002e20| 6e 74 72 6f 6c 20 77 69 | 6c 6c 20 72 65 74 75 72 |ntrol wi|ll retur|
|00002e30| 6e 20 74 6f 20 34 44 20 | 61 73 20 73 6f 6f 6e 20 |n to 4D |as soon |
|00002e40| 61 73 20 74 68 65 20 76 | 6f 69 63 65 20 73 79 6e |as the v|oice syn|
|00002e50| 74 68 65 73 69 7a 65 72 | 20 69 73 20 73 74 61 72 |thesizer| is star|
|00002e60| 74 65 64 2e 0d 49 66 20 | 6f 6e 65 20 6f 66 20 74 |ted..If |one of t|
|00002e70| 68 65 20 27 66 69 72 73 | 74 27 20 61 6e 64 20 27 |he 'firs|t' and '|
|00002e80| 6c 61 73 74 27 20 70 61 | 72 61 6d 65 74 65 72 73 |last' pa|rameters|
|00002e90| 20 69 73 20 6e 6f 74 20 | 70 61 73 73 65 64 2c 20 | is not |passed, |
|00002ea0| 7a 65 72 6f 20 6f 72 20 | 69 66 20 74 68 65 79 20 |zero or |if they |
|00002eb0| 61 72 65 20 65 71 75 61 | 6c 20 74 68 65 20 66 75 |are equa|l the fu|
|00002ec0| 6c 6c 20 74 65 78 74 20 | 77 69 6c 6c 20 62 65 20 |ll text |will be |
|00002ed0| 72 65 61 64 20 74 6f 20 | 79 6f 75 2e 20 41 6e 64 |read to |you. And|
|00002ee0| 2c 20 6f 66 63 6f 75 72 | 73 65 2c 20 61 6c 73 6f |, ofcour|se, also|
|00002ef0| 20 77 68 65 6e 20 27 66 | 69 72 73 74 27 20 69 73 | when 'f|irst' is|
|00002f00| 20 6f 6e 65 20 28 31 29 | 20 61 6e 64 20 27 6c 61 | one (1)| and 'la|
|00002f10| 73 74 27 20 69 73 20 74 | 68 65 20 6c 65 6e 67 74 |st' is t|he lengt|
|00002f20| 68 20 6f 66 20 74 68 65 | 20 74 65 78 74 20 70 6c |h of the| text pl|
|00002f30| 75 73 20 6f 6e 65 2e 0d | 0d 54 68 65 20 6c 69 6e |us one..|.The lin|
|00002f40| 65 73 20 79 6f 75 20 70 | 61 73 73 20 61 6e 64 20 |es you p|ass and |
|00002f50| 77 68 69 63 68 20 77 69 | 6c 6c 20 62 65 20 73 70 |which wi|ll be sp|
|00002f60| 6f 6b 65 6e 20 61 72 65 | 20 63 6f 70 69 65 64 20 |oken are| copied |
|00002f70| 61 6e 64 20 74 68 69 73 | 20 63 6f 70 79 20 69 73 |and this| copy is|
|00002f80| 20 75 73 65 64 20 74 6f | 20 73 70 65 61 6b 2e 20 | used to| speak. |
|00002f90| 49 66 20 79 6f 75 20 73 | 70 65 63 69 66 79 20 61 |If you s|pecify a|
|00002fa0| 20 76 61 6c 69 64 20 27 | 66 69 72 73 74 27 20 61 | valid '|first' a|
|00002fb0| 6e 64 20 27 6c 61 73 74 | 27 20 70 61 72 61 6d 65 |nd 'last|' parame|
|00002fc0| 74 65 72 20 6f 6e 6c 79 | 20 74 68 65 20 74 65 78 |ter only| the tex|
|00002fd0| 74 20 69 6e 20 62 65 74 | 77 65 65 6e 20 74 68 65 |t in bet|ween the|
|00002fe0| 73 65 20 74 77 6f 20 70 | 6f 73 69 74 69 6f 6e 73 |se two p|ositions|
|00002ff0| 20 77 69 6c 6c 20 62 65 | 20 63 6f 70 69 65 64 2c | will be| copied,|
|00003000| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 73 61 76 | in orde|r to sav|
|00003010| 65 20 6d 65 6d 6f 72 79 | 2e 20 59 6f 75 20 63 61 |e memory|. You ca|
|00003020| 6e 20 74 68 65 6e 20 64 | 6f 20 77 68 61 74 65 76 |n then d|o whatev|
|00003030| 65 72 20 79 6f 75 20 77 | 61 6e 74 2c 20 69 6e 63 |er you w|ant, inc|
|00003040| 6c 75 64 69 6e 67 20 75 | 6e 6c 6f 61 64 2f 63 61 |luding u|nload/ca|
|00003050| 6e 63 65 6c 20 61 6e 79 | 20 72 65 63 6f 72 64 20 |ncel any| record |
|00003060| 6f 72 20 63 6c 65 61 72 | 69 6e 67 20 61 20 76 61 |or clear|ing a va|
|00003070| 72 69 61 62 6c 65 20 6f | 72 20 66 69 65 6c 64 20 |riable o|r field |
|00003080| 61 66 74 65 72 20 63 61 | 6c 6c 69 6e 67 20 74 68 |after ca|lling th|
|00003090| 69 73 20 66 75 6e 63 74 | 69 6f 6e 2e 20 54 68 65 |is funct|ion. The|
|000030a0| 20 74 65 78 74 20 73 74 | 61 79 73 20 69 6e 20 6d | text st|ays in m|
|000030b0| 65 6d 6f 72 79 20 61 66 | 74 65 72 20 69 74 20 69 |emory af|ter it i|
|000030c0| 73 20 66 69 6e 69 73 68 | 65 64 20 73 70 65 61 6b |s finish|ed speak|
|000030d0| 69 6e 67 2c 20 75 6e 74 | 69 6c 6c 20 61 6e 6f 74 |ing, unt|ill anot|
|000030e0| 68 65 72 20 63 61 6c 6c | 20 69 73 20 6d 61 64 65 |her call| is made|
|000030f0| 20 74 6f 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 66 | to one |of the f|
|00003100| 75 6e 63 74 69 6f 6e 73 | 20 69 6e 20 74 68 69 73 |unctions| in this|
|00003110| 20 27 53 70 65 65 63 68 | 20 43 68 61 6e 6e 65 6c | 'Speech| Channel|
|00003120| 73 27 20 67 72 6f 75 70 | 2c 20 72 65 67 61 72 64 |s' group|, regard|
|00003130| 6c 65 73 73 20 6f 66 20 | 74 68 65 20 73 70 65 65 |less of |the spee|
|00003140| 63 68 20 63 68 61 6e 6e | 65 6c 20 72 65 66 65 72 |ch chann|el refer|
|00003150| 65 6e 63 65 20 79 6f 75 | 20 70 61 73 73 2e 0d 49 |ence you| pass..I|
|00003160| 66 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |f the sp|ecified |
|00003170| 73 70 65 65 63 68 20 63 | 68 61 6e 6e 65 6c 20 69 |speech c|hannel i|
|00003180| 73 20 61 6c 72 65 61 64 | 79 20 73 70 65 61 6b 69 |s alread|y speaki|
|00003190| 6e 67 20 74 65 78 74 2c | 20 74 68 69 73 20 77 69 |ng text,| this wi|
|000031a0| 6c 6c 20 62 65 20 73 74 | 6f 70 70 65 64 20 69 6d |ll be st|opped im|
|000031b0| 6d 65 64 69 61 74 6c 79 | 2e 0d 0d 45 78 61 6d 70 |mediatly|...Examp|
|000031c0| 6c 65 73 3a 0d ca ca 60 | 74 68 65 73 65 20 61 6c |les:...`|these al|
|000031d0| 6c 20 68 61 76 65 20 74 | 68 65 20 73 61 6d 65 20 |l have t|he same |
|000031e0| 65 66 66 65 63 74 0d ca | ca 24 65 72 72 20 3a 3d |effect..|.$err :=|
|000031f0| 20 53 50 20 56 6f 69 63 | 65 20 54 65 78 74 20 28 | SP Voic|e Text (|
|00003200| 24 73 70 65 65 63 68 72 | 65 66 3b 5b 46 69 6c 65 |$speechr|ef;[File|
|00003210| 20 31 5d 44 65 73 63 72 | 69 70 74 69 6f 6e 3b 30 | 1]Descr|iption;0|
|00003220| 3b 30 29 0d ca ca 24 65 | 72 72 20 3a 3d 20 53 50 |;0)...$e|rr := SP|
|00003230| 20 56 6f 69 63 65 20 54 | 65 78 74 20 28 24 73 70 | Voice T|ext ($sp|
|00003240| 65 65 63 68 72 65 66 3b | 5b 46 69 6c 65 20 31 5d |eechref;|[File 1]|
|00003250| 44 65 73 63 72 69 70 74 | 69 6f 6e 3b 31 3b 31 29 |Descript|ion;1;1)|
|00003260| 0d ca ca 24 65 72 72 20 | 3a 3d 20 53 50 20 56 6f |...$err |:= SP Vo|
|00003270| 69 63 65 20 54 65 78 74 | 20 28 24 73 70 65 65 63 |ice Text| ($speec|
|00003280| 68 72 65 66 3b 5b 46 69 | 6c 65 20 31 5d 44 65 73 |href;[Fi|le 1]Des|
|00003290| 63 72 69 70 74 69 6f 6e | 29 0d ca ca 24 65 72 72 |cription|)...$err|
|000032a0| 20 3a 3d 20 53 50 20 56 | 6f 69 63 65 20 54 65 78 | := SP V|oice Tex|
|000032b0| 74 20 28 24 73 70 65 65 | 63 68 72 65 66 3b 5b 46 |t ($spee|chref;[F|
|000032c0| 69 6c 65 20 31 5d 44 65 | 73 63 72 69 70 74 69 6f |ile 1]De|scriptio|
|000032d0| 6e 3b 31 3b 4c 65 6e 67 | 74 68 20 28 5b 46 69 6c |n;1;Leng|th ([Fil|
|000032e0| 65 20 31 5d 44 65 73 63 | 72 69 70 74 69 6f 6e 29 |e 1]Desc|ription)|
|000032f0| 20 2b 20 31 29 0d 0d ca | ca 60 61 6e 64 20 74 68 | + 1)...|.`and th|
|00003300| 69 73 20 6f 6e 65 20 77 | 69 6c 6c 20 69 67 6e 6f |is one w|ill igno|
|00003310| 72 65 20 74 68 65 20 6c | 61 73 74 20 63 68 61 72 |re the l|ast char|
|00003320| 61 63 74 65 72 0d ca ca | 24 65 72 72 20 3a 3d 20 |acter...|$err := |
|00003330| 53 50 20 56 6f 69 63 65 | 20 54 65 78 74 20 28 24 |SP Voice| Text ($|
|00003340| 73 70 65 65 63 68 72 65 | 66 3b 5b 46 69 6c 65 20 |speechre|f;[File |
|00003350| 31 5d 44 65 73 63 72 69 | 70 74 69 6f 6e 3b 31 3b |1]Descri|ption;1;|
|00003360| 4c 65 6e 67 74 68 20 28 | 5b 46 69 6c 65 20 31 5d |Length (|[File 1]|
|00003370| 44 65 73 63 72 69 70 74 | 69 6f 6e 29 29 0d 0d ca |Descript|ion))...|
|00003380| ca 60 61 6e 64 20 74 68 | 69 73 20 6f 6e 65 20 77 |.`and th|is one w|
|00003390| 69 6c 6c 20 6f 6e 6c 79 | 20 73 61 79 20 22 53 70 |ill only| say "Sp|
|000033a0| 65 65 63 68 20 4d 61 6e | 61 67 65 72 22 0d ca ca |eech Man|ager"...|
|000033b0| 24 6c 69 6e 65 73 20 3a | 3d 20 22 54 65 73 74 69 |$lines :|= "Testi|
|000033c0| 6e 67 20 53 70 65 65 63 | 68 20 4d 61 6e 61 67 65 |ng Speec|h Manage|
|000033d0| 72 22 0d ca ca 24 65 72 | 72 20 3a 3d 20 53 50 20 |r"...$er|r := SP |
|000033e0| 56 6f 69 63 65 20 54 65 | 78 74 20 28 24 73 70 65 |Voice Te|xt ($spe|
|000033f0| 65 63 68 72 65 66 3b 24 | 6c 69 6e 65 73 3b 39 3b |echref;$|lines;9;|
|00003400| 4c 65 6e 67 74 68 20 28 | 24 6c 69 6e 65 73 29 20 |Length (|$lines) |
|00003410| 2b 20 31 29 0d 0d 50 6f | 73 73 69 62 6c 65 20 65 |+ 1)..Po|ssible e|
|00003420| 72 72 6f 72 73 3a 0d ca | ca ca ca 30 ca ca 4e 6f |rrors:..|...0..No|
|00003430| 20 45 72 72 6f 72 0d ca | ca ca 2d 34 ca ca 53 70 | Error..|..-4..Sp|
|00003440| 65 65 63 68 20 50 61 63 | 6b 20 63 61 6e 20 6e 6f |eech Pac|k can no|
|00003450| 74 20 62 65 20 75 73 65 | 64 20 28 53 70 65 65 63 |t be use|d (Speec|
|00003460| 68 20 4d 61 6e 61 67 65 | 72 20 6e 6f 74 20 61 76 |h Manage|r not av|
|00003470| 61 69 6c 61 62 6c 65 29 | 0d ca d0 31 30 38 ca ca |ailable)|...108..|
|00003480| 4e 6f 74 20 65 6e 6f 75 | 67 68 20 6d 65 6d 6f 72 |Not enou|gh memor|
|00003490| 79 20 74 6f 20 6c 6f 61 | 64 20 76 6f 69 63 65 20 |y to loa|d voice |
|000034a0| 69 6e 74 6f 20 6d 65 6d | 6f 72 79 0d ca 2d 31 31 |into mem|ory..-11|
|000034b0| 31 ca ca 54 72 69 65 64 | 20 74 6f 20 64 69 73 70 |1..Tried| to disp|
|000034c0| 6f 73 65 20 61 6e 20 61 | 6c 72 65 61 64 79 20 64 |ose an a|lready d|
|000034d0| 69 73 70 6f 73 65 64 20 | 6e 6f 6e 2d 72 65 6c 6f |isposed |non-relo|
|000034e0| 63 61 74 61 62 6c 65 20 | 62 6c 6f 63 6b 0d ca 2d |catable |block..-|
|000034f0| 32 33 31 ca ca 46 65 61 | 74 75 72 65 20 6e 6f 74 |231..Fea|ture not|
|00003500| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 6f 6e 20 | impleme|nted on |
|00003510| 73 79 6e 74 68 65 73 69 | 7a 65 72 0d ca 2d 32 34 |synthesi|zer..-24|
|00003520| 32 ca ca 56 6f 69 63 65 | 20 73 79 6e 74 68 65 73 |2..Voice| synthes|
|00003530| 69 7a 65 72 20 69 73 20 | 6e 6f 74 20 72 65 61 64 |izer is |not read|
|00003540| 79 0d ca 2d 32 34 37 ca | ca 49 6e 70 75 74 20 74 |y..-247.|.Input t|
|00003550| 65 78 74 20 62 61 64 0d | d0 33 30 30 30 ca ca 49 |ext bad.|.3000..I|
|00003560| 6e 76 61 6c 69 64 20 53 | 70 65 65 63 68 43 68 61 |nvalid S|peechCha|
|00003570| 6e 6e 65 6c 20 70 61 72 | 61 6d 65 74 65 72 0d 41 |nnel par|ameter.A|
|00003580| 6e 64 20 6d 65 6d 6f 72 | 79 20 65 72 72 6f 72 73 |nd memor|y errors|
|00003590| 20 61 6e 64 20 6f 74 68 | 65 72 20 65 72 72 6f 72 | and oth|er error|
|000035a0| 73 20 41 70 70 6c 65 20 | 68 61 73 6e 27 74 20 74 |s Apple |hasn't t|
|000035b0| 6f 6c 64 20 6d 65 20 61 | 62 6f 75 74 2e 0d 0d 0d |old me a|bout....|
|000035c0| 53 50 20 56 6f 69 63 65 | 20 62 75 73 79 0d 0d 52 |SP Voice| busy..R|
|000035d0| 65 74 75 72 6e 73 20 74 | 68 65 20 73 74 61 74 75 |eturns t|he statu|
|000035e0| 73 20 6f 66 20 74 68 65 | 20 73 70 65 63 69 66 69 |s of the| specifi|
|000035f0| 65 64 20 73 70 65 65 63 | 68 20 63 68 61 6e 6e 65 |ed speec|h channe|
|00003600| 6c 2e 0d 0d 55 73 61 67 | 65 3a 0d 73 74 61 74 75 |l...Usag|e:.statu|
|00003610| 73 20 3a 3d 20 53 50 20 | 56 6f 69 63 65 20 62 75 |s := SP |Voice bu|
|00003620| 73 79 20 28 72 65 66 65 | 72 65 6e 63 65 29 0d 0d |sy (refe|rence)..|
|00003630| 77 68 65 72 65 3a 0d 3c | 2d 20 73 74 61 74 75 73 |where:.<|- status|
|00003640| 0d 69 73 20 61 6e 20 69 | 6e 74 65 67 65 72 20 69 |.is an i|nteger i|
|00003650| 6e 64 69 63 61 74 69 6e | 67 20 69 66 20 74 68 65 |ndicatin|g if the|
|00003660| 20 73 70 65 63 69 66 69 | 65 64 20 73 70 65 65 63 | specifi|ed speec|
|00003670| 68 20 63 68 61 6e 6e 65 | 6c 20 69 73 20 73 74 69 |h channe|l is sti|
|00003680| 6c 6c 20 62 75 73 79 20 | 73 70 65 61 6b 69 6e 67 |ll busy |speaking|
|00003690| 2e 0d ca 2d 32 ca ca 52 | 65 66 65 72 65 6e 63 65 |...-2..R|eference|
|000036a0| 20 69 73 20 69 6e 76 61 | 6c 69 64 0d ca 2d 31 ca | is inva|lid..-1.|
|000036b0| ca 41 6c 72 65 61 64 79 | 20 63 6c 6f 73 65 64 20 |.Already| closed |
|000036c0| 6f 72 20 6e 65 76 65 72 | 20 6f 70 65 6e 65 64 0d |or never| opened.|
|000036d0| ca ca 30 ca ca 46 69 6e | 69 73 68 65 64 0d ca ca |..0..Fin|ished...|
|000036e0| 31 ca ca 42 75 73 79 0d | ca ca 32 ca ca 50 61 75 |1..Busy.|..2..Pau|
|000036f0| 73 65 64 0d 28 61 6c 6c | 20 6f 74 68 65 72 20 76 |sed.(all| other v|
|00003700| 61 6c 75 65 73 20 61 72 | 65 20 72 65 73 65 72 76 |alues ar|e reserv|
|00003710| 65 64 20 66 6f 72 20 66 | 75 74 75 72 65 20 75 73 |ed for f|uture us|
|00003720| 65 2e 29 0d 0d 2d 3e 20 | 72 65 66 65 72 65 6e 63 |e.)..-> |referenc|
|00003730| 65 0d 69 73 20 61 6e 20 | 69 6e 74 65 67 65 72 20 |e.is an |integer |
|00003740| 73 70 65 63 69 66 79 69 | 6e 67 20 74 68 65 20 63 |specifyi|ng the c|
|00003750| 68 61 6e 6e 65 6c 20 79 | 6f 75 20 77 61 6e 74 20 |hannel y|ou want |
|00003760| 74 68 65 20 73 74 61 74 | 75 73 20 66 72 6f 6d 2e |the stat|us from.|
|00003770| 20 55 73 65 20 74 68 65 | 20 72 65 66 65 72 65 6e | Use the| referen|
|00003780| 63 65 20 6e 75 6d 62 65 | 72 20 6f 62 74 61 69 6e |ce numbe|r obtain|
|00003790| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 4f 70 65 6e |ed from |the Open|
|000037a0| 20 56 6f 69 63 65 20 66 | 75 6e 63 74 69 6f 6e 2e | Voice f|unction.|
|000037b0| 20 54 68 69 73 20 6d 61 | 79 20 72 65 66 65 72 65 | This ma|y refere|
|000037c0| 6e 63 65 20 74 6f 20 61 | 6e 20 61 6c 72 65 61 64 |nce to a|n alread|
|000037d0| 79 20 63 6c 6f 73 65 64 | 20 73 70 65 65 63 68 20 |y closed| speech |
|000037e0| 63 68 61 6e 6e 65 6c 2c | 20 68 6f 77 65 76 65 72 |channel,| however|
|000037f0| 20 69 66 20 74 68 61 74 | 20 73 61 6d 65 20 72 65 | if that| same re|
|00003800| 66 65 72 65 6e 63 65 20 | 69 73 20 75 73 65 64 20 |ference |is used |
|00003810| 66 6f 72 20 61 6e 6f 74 | 68 65 72 20 6e 65 77 6c |for anot|her newl|
|00003820| 79 20 6f 70 65 6e 65 64 | 20 63 68 61 6e 6e 65 6c |y opened| channel|
|00003830| 20 69 74 20 72 65 66 65 | 72 65 6e 63 65 73 20 74 | it refe|rences t|
|00003840| 6f 20 61 6e 6f 74 68 65 | 72 20 63 68 61 6e 6e 65 |o anothe|r channe|
|00003850| 6c 21 0d 0d 45 78 61 6d | 70 6c 65 73 3a 0d ca 24 |l!..Exam|ples:..$|
|00003860| 65 72 72 20 3a 3d 20 53 | 50 20 56 6f 69 63 65 20 |err := S|P Voice |
|00003870| 53 74 72 69 6e 67 20 28 | 24 73 70 65 65 63 68 72 |String (|$speechr|
|00003880| 65 66 3b 22 4c 6f 6f 6b | 20 77 68 6f 20 69 73 20 |ef;"Look| who is |
|00003890| 74 61 6c 6b 69 6e 67 21 | 22 29 0d 0d ca 57 68 69 |talking!|")...Whi|
|000038a0| 6c 65 20 28 53 50 20 56 | 6f 69 63 65 20 42 75 73 |le (SP V|oice Bus|
|000038b0| 79 20 28 24 73 70 65 65 | 63 68 72 65 66 29 20 3d |y ($spee|chref) =|
|000038c0| 20 31 29 20 60 69 66 20 | 61 6e 20 65 72 72 6f 72 | 1) `if |an error|
|000038d0| 20 6f 63 63 75 72 65 64 | 20 74 68 69 73 20 68 61 | occured| this ha|
|000038e0| 73 20 6e 6f 20 69 6d 70 | 61 63 74 20 48 45 52 45 |s no imp|act HERE|
|000038f0| 2e 0d ca ca 49 44 4c 45 | 0d ca 45 6e 64 20 57 68 |....IDLE|..End Wh|
|00003900| 69 6c 65 0d 0d 0d 0d 53 | 50 20 47 65 74 20 41 74 |ile....S|P Get At|
|00003910| 74 72 0d 0d 47 65 74 20 | 74 68 65 20 72 61 74 65 |tr..Get |the rate|
|00003920| 20 61 6e 64 20 70 69 74 | 63 68 20 6f 66 20 74 68 | and pit|ch of th|
|00003930| 65 20 73 70 65 63 69 66 | 69 65 64 20 76 6f 69 63 |e specif|ied voic|
|00003940| 65 2e 0d 0d 55 73 61 67 | 65 3a 0d 65 72 72 20 3a |e...Usag|e:.err :|
|00003950| 3d 20 53 50 20 47 65 74 | 20 41 74 74 72 20 28 72 |= SP Get| Attr (r|
|00003960| 65 66 65 72 65 6e 63 65 | 3b 20 72 61 74 65 3b 20 |eference|; rate; |
|00003970| 70 69 74 63 68 29 0d 0d | 77 68 65 72 65 3a 0d 3c |pitch)..|where:.<|
|00003980| 2d 20 65 72 72 0d 69 73 | 20 61 6e 20 69 6e 74 65 |- err.is| an inte|
|00003990| 67 65 72 20 72 65 74 75 | 72 6e 69 6e 67 20 74 68 |ger retu|rning th|
|000039a0| 65 20 65 72 72 6f 72 20 | 77 68 69 63 68 20 6f 63 |e error |which oc|
|000039b0| 63 75 72 65 64 2e 20 41 | 20 76 61 6c 75 65 20 6f |cured. A| value o|
|000039c0| 66 20 7a 65 72 6f 20 69 | 6e 64 69 63 61 74 65 73 |f zero i|ndicates|
|000039d0| 20 6e 6f 20 65 72 72 6f | 72 20 6f 63 63 75 72 65 | no erro|r occure|
|000039e0| 64 2e 20 53 65 65 20 62 | 65 6c 6f 77 20 66 6f 72 |d. See b|elow for|
|000039f0| 20 61 20 6c 69 73 74 20 | 6f 66 20 70 6f 73 73 69 | a list |of possi|
|00003a00| 62 6c 65 20 65 72 72 6f | 72 73 2e 0d 0d 2d 3e 20 |ble erro|rs...-> |
|00003a10| 72 65 66 65 72 65 6e 63 | 65 0d 69 73 20 61 6e 20 |referenc|e.is an |
|00003a20| 69 6e 74 65 67 65 72 20 | 73 70 65 63 69 66 79 69 |integer |specifyi|
|00003a30| 6e 67 20 74 68 65 20 63 | 68 61 6e 6e 65 6c 20 79 |ng the c|hannel y|
|00003a40| 6f 75 20 77 61 6e 74 20 | 74 6f 20 75 73 65 2e 20 |ou want |to use. |
|00003a50| 55 73 65 20 74 68 65 20 | 72 65 66 65 72 65 6e 63 |Use the |referenc|
|00003a60| 65 20 6e 75 6d 62 65 72 | 20 6f 62 74 61 69 6e 65 |e number| obtaine|
|00003a70| 64 20 66 72 6f 6d 20 74 | 68 65 20 4f 70 65 6e 20 |d from t|he Open |
|00003a80| 56 6f 69 63 65 20 66 75 | 6e 63 74 69 6f 6e 2e 20 |Voice fu|nction. |
|00003a90| 54 68 65 20 63 68 61 6e | 6e 65 6c 20 6d 75 73 74 |The chan|nel must|
|00003aa0| 20 62 65 20 6f 70 65 6e | 2e 0d 0d 2d 3e 20 72 61 | be open|...-> ra|
|00003ab0| 74 65 0d 69 73 20 61 6e | 20 69 6e 74 65 67 65 72 |te.is an| integer|
|00003ac0| 20 77 69 74 68 20 74 68 | 65 20 72 61 74 65 20 69 | with th|e rate i|
|00003ad0| 6e 20 57 6f 72 64 73 20 | 70 65 72 20 4d 69 6e 75 |n Words |per Minu|
|00003ae0| 74 65 20 28 57 50 4d 29 | 20 63 75 72 72 65 6e 74 |te (WPM)| current|
|00003af0| 6c 79 20 75 73 65 64 2e | 0d 0d 2d 3e 20 70 69 74 |ly used.|..-> pit|
|00003b00| 63 68 0d 69 73 20 61 6e | 20 69 6e 74 65 67 65 72 |ch.is an| integer|
|00003b10| 20 77 69 74 68 20 74 68 | 65 20 70 69 74 63 68 20 | with th|e pitch |
|00003b20| 69 6e 20 48 65 72 74 7a | 20 63 75 72 72 65 6e 74 |in Hertz| current|
|00003b30| 6c 79 20 75 73 65 64 2e | 0d 0d 45 78 61 6d 70 6c |ly used.|..Exampl|
|00003b40| 65 3a 0d ca 24 65 72 72 | 20 3a 3d 20 47 65 74 20 |e:..$err| := Get |
|00003b50| 41 74 74 72 20 28 24 73 | 70 65 65 63 68 72 65 66 |Attr ($s|peechref|
|00003b60| 3b 24 72 61 74 65 3b 24 | 70 69 74 63 68 29 0d 0d |;$rate;$|pitch)..|
|00003b70| 50 6f 73 73 69 62 6c 65 | 20 65 72 72 6f 72 73 3a |Possible| errors:|
|00003b80| 0d ca ca ca ca 30 ca ca | 4e 6f 20 45 72 72 6f 72 |.....0..|No Error|
|00003b90| 0d ca ca ca 2d 34 ca ca | 53 70 65 65 63 68 20 50 |....-4..|Speech P|
|00003ba0| 61 63 6b 20 63 61 6e 20 | 6e 6f 74 20 62 65 20 75 |ack can |not be u|
|00003bb0| 73 65 64 20 28 53 70 65 | 65 63 68 20 4d 61 6e 61 |sed (Spe|ech Mana|
|00003bc0| 67 65 72 20 6e 6f 74 20 | 61 76 61 69 6c 61 62 6c |ger not |availabl|
|00003bd0| 65 29 0d d0 33 30 30 30 | ca ca 49 6e 76 61 6c 69 |e)..3000|..Invali|
|00003be0| 64 20 53 70 65 65 63 68 | 43 68 61 6e 6e 65 6c 20 |d Speech|Channel |
|00003bf0| 70 61 72 61 6d 65 74 65 | 72 0d 41 6e 64 20 6f 74 |paramete|r.And ot|
|00003c00| 68 65 72 20 65 72 72 6f | 72 73 20 41 70 70 6c 65 |her erro|rs Apple|
|00003c10| 20 68 61 73 6e 27 74 20 | 74 6f 6c 64 20 6d 65 20 | hasn't |told me |
|00003c20| 61 62 6f 75 74 2e 0d 0d | 0d 53 50 20 53 65 74 20 |about...|.SP Set |
|00003c30| 41 74 74 72 0d 0d 53 65 | 74 20 74 68 65 20 72 61 |Attr..Se|t the ra|
|00003c40| 74 65 20 61 6e 64 20 70 | 69 74 63 68 20 6f 66 20 |te and p|itch of |
|00003c50| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 76 6f |the spec|ified vo|
|00003c60| 69 63 65 2e 0d 0d 55 73 | 61 67 65 3a 0d 65 72 72 |ice...Us|age:.err|
|00003c70| 20 3a 3d 20 53 50 20 53 | 65 74 20 41 74 74 72 20 | := SP S|et Attr |
|00003c80| 28 72 65 66 65 72 65 6e | 63 65 3b 20 7b 72 61 74 |(referen|ce; {rat|
|00003c90| 65 7d 3b 20 7b 70 69 74 | 63 68 7d 29 0d 0d 77 68 |e}; {pit|ch})..wh|
|00003ca0| 65 72 65 3a 0d 3c 2d 20 | 65 72 72 0d 69 73 20 61 |ere:.<- |err.is a|
|00003cb0| 6e 20 69 6e 74 65 67 65 | 72 20 72 65 74 75 72 6e |n intege|r return|
|00003cc0| 69 6e 67 20 74 68 65 20 | 65 72 72 6f 72 20 77 68 |ing the |error wh|
|00003cd0| 69 63 68 20 6f 63 63 75 | 72 65 64 2e 20 41 20 76 |ich occu|red. A v|
|00003ce0| 61 6c 75 65 20 6f 66 20 | 7a 65 72 6f 20 69 6e 64 |alue of |zero ind|
|00003cf0| 69 63 61 74 65 73 20 6e | 6f 20 65 72 72 6f 72 20 |icates n|o error |
|00003d00| 6f 63 63 75 72 65 64 2e | 20 53 65 65 20 62 65 6c |occured.| See bel|
|00003d10| 6f 77 20 66 6f 72 20 61 | 20 6c 69 73 74 20 6f 66 |ow for a| list of|
|00003d20| 20 70 6f 73 73 69 62 6c | 65 20 65 72 72 6f 72 73 | possibl|e errors|
|00003d30| 2e 0d 0d 2d 3e 20 72 65 | 66 65 72 65 6e 63 65 0d |...-> re|ference.|
|00003d40| 69 73 20 61 6e 20 69 6e | 74 65 67 65 72 20 73 70 |is an in|teger sp|
|00003d50| 65 63 69 66 79 69 6e 67 | 20 74 68 65 20 63 68 61 |ecifying| the cha|
|00003d60| 6e 6e 65 6c 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |nnel you| want to|
|00003d70| 20 75 73 65 2e 20 55 73 | 65 20 74 68 65 20 72 65 | use. Us|e the re|
|00003d80| 66 65 72 65 6e 63 65 20 | 6e 75 6d 62 65 72 20 6f |ference |number o|
|00003d90| 62 74 61 69 6e 65 64 20 | 66 72 6f 6d 20 74 68 65 |btained |from the|
|00003da0| 20 4f 70 65 6e 20 56 6f | 69 63 65 20 66 75 6e 63 | Open Vo|ice func|
|00003db0| 74 69 6f 6e 2e 20 54 68 | 65 20 63 68 61 6e 6e 65 |tion. Th|e channe|
|00003dc0| 6c 20 6d 75 73 74 20 62 | 65 20 6f 70 65 6e 2e 0d |l must b|e open..|
|00003dd0| 0d 2d 3e 20 72 61 74 65 | 0d 69 73 20 61 6e 20 69 |.-> rate|.is an i|
|00003de0| 6e 74 65 67 65 72 20 77 | 69 74 68 20 74 68 65 20 |nteger w|ith the |
|00003df0| 72 61 74 65 20 69 6e 20 | 57 6f 72 64 73 20 70 65 |rate in |Words pe|
|00003e00| 72 20 4d 69 6e 75 74 65 | 20 28 57 50 4d 29 20 77 |r Minute| (WPM) w|
|00003e10| 68 69 63 68 20 6e 65 65 | 64 73 20 74 6f 20 62 65 |hich nee|ds to be|
|00003e20| 20 61 70 70 6c 69 65 64 | 20 74 6f 20 74 68 65 20 | applied| to the |
|00003e30| 76 6f 69 63 65 2e 20 54 | 68 65 20 6e 6f 72 6d 61 |voice. T|he norma|
|00003e40| 6c 20 72 61 74 65 20 6f | 66 20 74 68 65 20 76 6f |l rate o|f the vo|
|00003e50| 69 63 65 20 69 73 20 6e | 6f 74 20 63 68 61 6e 67 |ice is n|ot chang|
|00003e60| 65 64 20 69 66 20 79 6f | 75 20 70 61 73 73 20 61 |ed if yo|u pass a|
|00003e70| 20 7a 65 72 6f 20 76 61 | 6c 75 65 20 6f 72 20 6e | zero va|lue or n|
|00003e80| 6f 20 70 61 72 61 6d 65 | 74 65 72 2e 0d 0d 2d 3e |o parame|ter...->|
|00003e90| 20 70 69 74 63 68 0d 69 | 73 20 61 6e 20 69 6e 74 | pitch.i|s an int|
|00003ea0| 65 67 65 72 20 77 69 74 | 68 20 74 68 65 20 70 69 |eger wit|h the pi|
|00003eb0| 74 63 68 20 69 6e 20 48 | 65 72 74 7a 20 77 68 69 |tch in H|ertz whi|
|00003ec0| 63 68 20 6e 65 65 64 73 | 20 74 6f 20 62 65 20 61 |ch needs| to be a|
|00003ed0| 70 70 6c 69 65 64 20 74 | 6f 20 74 68 65 20 76 6f |pplied t|o the vo|
|00003ee0| 69 63 65 2e 20 54 68 65 | 20 6e 6f 72 6d 61 6c 20 |ice. The| normal |
|00003ef0| 70 69 74 63 68 20 6f 66 | 20 74 68 65 20 76 6f 69 |pitch of| the voi|
|00003f00| 63 65 20 69 73 20 6e 6f | 74 20 63 68 61 6e 67 65 |ce is no|t change|
|00003f10| 64 20 69 66 20 79 6f 75 | 20 70 61 73 73 20 61 20 |d if you| pass a |
|00003f20| 7a 65 72 6f 20 76 61 6c | 75 65 20 6f 72 20 6e 6f |zero val|ue or no|
|00003f30| 20 70 61 72 61 6d 65 74 | 65 72 2e 0d 0d 53 65 65 | paramet|er...See|
|00003f40| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d | for mor|e inform|
|00003f50| 61 74 69 6f 6e 20 74 68 | 65 20 53 70 65 65 63 68 |ation th|e Speech|
|00003f60| 20 4d 61 6e 61 67 65 72 | 20 64 6f 63 75 6d 65 6e | Manager| documen|
|00003f70| 74 61 74 69 6f 6e 20 6f | 72 20 75 73 65 20 76 61 |tation o|r use va|
|00003f80| 6c 75 65 73 20 6f 62 74 | 61 69 6e 65 64 20 62 79 |lues obt|ained by|
|00003f90| 20 75 73 69 6e 67 20 74 | 68 65 20 47 65 74 20 41 | using t|he Get A|
|00003fa0| 74 74 72 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |ttr func|tion to |
|00003fb0| 6d 6f 64 69 66 79 20 61 | 20 76 6f 69 63 65 2e 0d |modify a| voice..|
|00003fc0| 0d 45 78 61 6d 70 6c 65 | 73 3a 0d ca 24 65 72 72 |.Example|s:..$err|
|00003fd0| 20 3a 3d 20 53 65 74 20 | 41 74 74 72 20 28 24 73 | := Set |Attr ($s|
|00003fe0| 70 65 65 63 68 72 65 66 | 3b 24 72 61 74 65 2b 35 |peechref|;$rate+5|
|00003ff0| 3b 24 70 69 74 63 68 2b | 31 35 29 0d ca 24 65 72 |;$pitch+|15)..$er|
|00004000| 72 20 3a 3d 20 53 65 74 | 20 41 74 74 72 20 28 24 |r := Set| Attr ($|
|00004010| 73 70 65 65 63 68 72 65 | 66 3b 31 30 30 3b 31 37 |speechre|f;100;17|
|00004020| 35 29 0d 0d 50 6f 73 73 | 69 62 6c 65 20 65 72 72 |5)..Poss|ible err|
|00004030| 6f 72 73 3a 0d ca ca ca | ca 30 ca ca 4e 6f 20 45 |ors:....|.0..No E|
|00004040| 72 72 6f 72 0d ca ca ca | 2d 34 ca ca 53 70 65 65 |rror....|-4..Spee|
|00004050| 63 68 20 50 61 63 6b 20 | 63 61 6e 20 6e 6f 74 20 |ch Pack |can not |
|00004060| 62 65 20 75 73 65 64 20 | 28 53 70 65 65 63 68 20 |be used |(Speech |
|00004070| 4d 61 6e 61 67 65 72 20 | 6e 6f 74 20 61 76 61 69 |Manager |not avai|
|00004080| 6c 61 62 6c 65 29 0d d0 | 33 30 30 30 ca ca 49 6e |lable)..|3000..In|
|00004090| 76 61 6c 69 64 20 53 70 | 65 65 63 68 43 68 61 6e |valid Sp|eechChan|
|000040a0| 6e 65 6c 20 70 61 72 61 | 6d 65 74 65 72 0d 41 6e |nel para|meter.An|
|000040b0| 64 20 6f 74 68 65 72 20 | 65 72 72 6f 72 73 20 41 |d other |errors A|
|000040c0| 70 70 6c 65 20 68 61 73 | 6e 27 74 20 74 6f 6c 64 |pple has|n't told|
|000040d0| 20 6d 65 20 61 62 6f 75 | 74 2e 0d 0d 0d 53 50 20 | me abou|t....SP |
|000040e0| 56 6f 69 63 65 20 53 74 | 6f 70 2c 20 53 50 20 56 |Voice St|op, SP V|
|000040f0| 6f 69 63 65 20 50 61 75 | 73 65 2c 20 53 50 20 56 |oice Pau|se, SP V|
|00004100| 6f 69 63 65 20 43 6f 6e | 74 0d 0d 46 75 6e 63 74 |oice Con|t..Funct|
|00004110| 69 6f 6e 73 20 74 6f 20 | 63 6f 6e 74 72 6f 6c 20 |ions to |control |
|00004120| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 73 70 |the spec|ified sp|
|00004130| 65 65 63 68 20 63 68 61 | 6e 6e 65 6c 20 73 70 65 |eech cha|nnel spe|
|00004140| 61 6b 69 6e 67 20 74 68 | 65 20 6c 69 6e 65 73 20 |aking th|e lines |
|00004150| 62 79 20 65 6e 61 62 6c | 69 6e 67 20 79 6f 75 20 |by enabl|ing you |
|00004160| 74 6f 20 73 74 6f 70 2c | 20 70 61 75 73 65 20 61 |to stop,| pause a|
|00004170| 6e 64 20 63 6f 6e 74 69 | 6e 75 65 2e 0d 0d 55 73 |nd conti|nue...Us|
|00004180| 61 67 65 3a 0d 65 72 72 | 20 3a 3d 20 53 50 20 56 |age:.err| := SP V|
|00004190| 6f 69 63 65 20 53 74 6f | 70 20 28 72 65 66 65 72 |oice Sto|p (refer|
|000041a0| 65 6e 63 65 29 0d 65 72 | 72 20 3a 3d 20 53 50 20 |ence).er|r := SP |
|000041b0| 56 6f 69 63 65 20 50 61 | 75 73 65 20 28 72 65 66 |Voice Pa|use (ref|
|000041c0| 65 72 65 6e 63 65 29 0d | 65 72 72 20 3a 3d 20 53 |erence).|err := S|
|000041d0| 50 20 56 6f 69 63 65 20 | 43 6f 6e 74 20 28 72 65 |P Voice |Cont (re|
|000041e0| 66 65 72 65 6e 63 65 29 | 0d 0d 57 68 65 72 65 3a |ference)|..Where:|
|000041f0| 0d 3c 2d 20 65 72 72 0d | 69 73 20 61 6e 20 69 6e |.<- err.|is an in|
|00004200| 74 65 67 65 72 20 72 65 | 74 75 72 6e 69 6e 67 20 |teger re|turning |
|00004210| 74 68 65 20 65 72 72 6f | 72 20 77 68 69 63 68 20 |the erro|r which |
|00004220| 6f 63 63 75 72 65 64 2e | 20 41 20 76 61 6c 75 65 |occured.| A value|
|00004230| 20 6f 66 20 7a 65 72 6f | 20 69 6e 64 69 63 61 74 | of zero| indicat|
|00004240| 65 73 20 6e 6f 20 65 72 | 72 6f 72 20 6f 63 63 75 |es no er|ror occu|
|00004250| 72 65 64 2e 20 53 65 65 | 20 62 65 6c 6f 77 20 66 |red. See| below f|
|00004260| 6f 72 20 61 20 6c 69 73 | 74 20 6f 66 20 70 6f 73 |or a lis|t of pos|
|00004270| 73 69 62 6c 65 20 65 72 | 72 6f 72 73 2e 0d 0d 2d |sible er|rors...-|
|00004280| 3e 20 72 65 66 65 72 65 | 6e 63 65 0d 69 73 20 61 |> refere|nce.is a|
|00004290| 6e 20 69 6e 74 65 67 65 | 72 20 73 70 65 63 69 66 |n intege|r specif|
|000042a0| 79 69 6e 67 20 74 68 65 | 20 63 68 61 6e 6e 65 6c |ying the| channel|
|000042b0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 75 73 65 | you wan|t to use|
|000042c0| 2e 20 55 73 65 20 74 68 | 65 20 72 65 66 65 72 65 |. Use th|e refere|
|000042d0| 6e 63 65 20 6e 75 6d 62 | 65 72 20 6f 62 74 61 69 |nce numb|er obtai|
|000042e0| 6e 65 64 20 66 72 6f 6d | 20 74 68 65 20 4f 70 65 |ned from| the Ope|
|000042f0| 6e 20 56 6f 69 63 65 20 | 66 75 6e 63 74 69 6f 6e |n Voice |function|
|00004300| 2e 20 54 68 65 20 63 68 | 61 6e 6e 65 6c 20 6d 75 |. The ch|annel mu|
|00004310| 73 74 20 62 65 20 6f 70 | 65 6e 2e 0d 0d 54 68 65 |st be op|en...The|
|00004320| 73 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |se funct|ions are|
|00004330| 20 70 65 72 66 65 63 74 | 6c 79 20 73 75 69 74 65 | perfect|ly suite|
|00004340| 64 20 74 6f 20 6d 61 6b | 65 20 61 20 72 6f 77 20 |d to mak|e a row |
|00004350| 6f 66 20 62 75 74 74 6f | 6e 73 20 74 6f 20 70 6c |of butto|ns to pl|
|00004360| 61 79 2c 20 73 74 6f 70 | 2c 20 70 61 75 73 65 20 |ay, stop|, pause |
|00004370| 61 6e 64 20 63 6f 6e 74 | 69 6e 75 65 20 74 68 65 |and cont|inue the|
|00004380| 20 73 70 65 65 63 68 20 | 6f 66 20 74 68 65 20 73 | speech |of the s|
|00004390| 65 6c 65 63 74 65 64 20 | 74 65 78 74 20 69 6e 20 |elected |text in |
|000043a0| 61 20 74 65 78 74 20 66 | 69 65 6c 64 2e 0d 0d 50 |a text f|ield...P|
|000043b0| 6f 73 73 69 62 6c 65 20 | 65 72 72 6f 72 73 3a 0d |ossible |errors:.|
|000043c0| ca ca ca ca 30 ca ca 4e | 6f 20 45 72 72 6f 72 0d |....0..N|o Error.|
|000043d0| ca ca ca 2d 34 ca ca 53 | 70 65 65 63 68 20 50 61 |...-4..S|peech Pa|
|000043e0| 63 6b 20 63 61 6e 20 6e | 6f 74 20 62 65 20 75 73 |ck can n|ot be us|
|000043f0| 65 64 20 28 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |ed (Spee|ch Manag|
|00004400| 65 72 20 6e 6f 74 20 61 | 76 61 69 6c 61 62 6c 65 |er not a|vailable|
|00004410| 29 0d d0 33 30 30 30 ca | ca 49 6e 76 61 6c 69 64 |)..3000.|.Invalid|
|00004420| 20 53 70 65 65 63 68 43 | 68 61 6e 6e 65 6c 20 70 | SpeechC|hannel p|
|00004430| 61 72 61 6d 65 74 65 72 | 0d 41 6e 64 20 6f 74 68 |arameter|.And oth|
|00004440| 65 72 20 65 72 72 6f 72 | 73 20 41 70 70 6c 65 20 |er error|s Apple |
|00004450| 68 61 73 6e 27 74 20 74 | 6f 6c 64 20 6d 65 20 61 |hasn't t|old me a|
|00004460| 62 6f 75 74 2e 0d 0d 0d | 51 75 69 63 6b 20 53 70 |bout....|Quick Sp|
|00004470| 65 61 6b 0d 53 50 20 53 | 70 65 61 6b 20 53 74 72 |eak.SP S|peak Str|
|00004480| 69 6e 67 0d 0d 52 65 61 | 64 73 20 6f 75 74 20 74 |ing..Rea|ds out t|
|00004490| 68 65 20 73 74 72 69 6e | 67 20 79 6f 75 20 70 61 |he strin|g you pa|
|000044a0| 73 73 2c 20 75 73 69 6e | 67 20 74 68 65 20 73 70 |ss, usin|g the sp|
|000044b0| 65 63 69 66 69 65 64 20 | 76 6f 69 63 65 2c 20 77 |ecified |voice, w|
|000044c0| 69 74 68 6f 75 74 20 72 | 65 74 75 72 6e 69 6e 67 |ithout r|eturning|
|000044d0| 20 74 6f 20 34 44 20 75 | 6e 74 69 6c 20 74 68 65 | to 4D u|ntil the|
|000044e0| 20 6c 69 6e 65 20 68 61 | 73 20 62 65 65 6e 20 73 | line ha|s been s|
|000044f0| 70 6f 6b 65 6e 2e 0d 0d | 55 73 61 67 65 3a 0d 65 |poken...|Usage:.e|
|00004500| 72 72 20 3a 3d 20 53 50 | 20 53 70 65 61 6b 20 53 |rr := SP| Speak S|
|00004510| 74 72 69 6e 67 20 28 76 | 6f 69 63 65 3b 20 6c 69 |tring (v|oice; li|
|00004520| 6e 65 29 0d 0d 77 68 65 | 72 65 3a 0d 3c 2d 20 65 |ne)..whe|re:.<- e|
|00004530| 72 72 0d 69 73 20 61 6e | 20 69 6e 74 65 67 65 72 |rr.is an| integer|
|00004540| 20 72 65 74 75 72 6e 69 | 6e 67 20 74 68 65 20 65 | returni|ng the e|
|00004550| 72 72 6f 72 20 77 68 69 | 63 68 20 6f 63 63 75 72 |rror whi|ch occur|
|00004560| 65 64 2e 20 41 20 76 61 | 6c 75 65 20 6f 66 20 7a |ed. A va|lue of z|
|00004570| 65 72 6f 20 69 6e 64 69 | 63 61 74 65 73 20 6e 6f |ero indi|cates no|
|00004580| 20 65 72 72 6f 72 20 6f | 63 63 75 72 65 64 2e 20 | error o|ccured. |
|00004590| 53 65 65 20 62 65 6c 6f | 77 20 66 6f 72 20 61 20 |See belo|w for a |
|000045a0| 6c 69 73 74 20 6f 66 20 | 70 6f 73 73 69 62 6c 65 |list of |possible|
|000045b0| 20 65 72 72 6f 72 73 2e | 0d 0d 2d 3e 20 76 6f 69 | errors.|..-> voi|
|000045c0| 63 65 0d 69 73 20 61 20 | 73 74 72 69 6e 67 20 28 |ce.is a |string (|
|000045d0| 6c 65 6e 67 74 68 20 36 | 33 2c 20 63 61 73 65 2d |length 6|3, case-|
|000045e0| 73 65 6e 73 69 74 69 76 | 65 29 20 73 70 65 63 69 |sensitiv|e) speci|
|000045f0| 66 79 69 6e 67 20 74 68 | 65 20 76 6f 69 63 65 20 |fying th|e voice |
|00004600| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 75 73 65 2e |you want| to use.|
|00004610| 20 53 65 65 20 74 68 65 | 20 6c 69 73 74 20 6f 66 | See the| list of|
|00004620| 20 61 76 61 69 6c 61 62 | 6c 65 20 76 6f 69 63 65 | availab|le voice|
|00004630| 73 20 69 6e 63 6c 75 64 | 65 64 20 77 69 74 68 20 |s includ|ed with |
|00004640| 74 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |the Spee|ch Manag|
|00004650| 65 72 20 65 78 74 65 6e | 73 69 6f 6e 20 6f 72 20 |er exten|sion or |
|00004660| 69 6e 20 61 6e 79 20 76 | 6f 69 63 65 20 66 69 6c |in any v|oice fil|
|00004670| 65 20 69 6e 20 74 68 65 | 20 53 79 73 74 65 6d 20 |e in the| System |
|00004680| 46 6f 6c 64 65 72 20 61 | 6e 64 2f 6f 72 20 45 78 |Folder a|nd/or Ex|
|00004690| 74 65 6e 73 69 6f 6e 73 | 20 46 6f 6c 64 65 72 2c |tensions| Folder,|
|000046a0| 20 6f 72 20 75 73 65 20 | 74 68 65 20 43 6f 75 6e | or use |the Coun|
|000046b0| 74 20 76 6f 69 63 65 73 | 20 61 6e 64 20 56 6f 69 |t voices| and Voi|
|000046c0| 63 65 6e 61 6d 65 20 74 | 6f 20 6f 62 74 61 69 6e |cename t|o obtain|
|000046d0| 20 74 68 69 73 20 69 6e | 66 6f 72 6d 61 74 69 6f | this in|formatio|
|000046e0| 6e 2e 0d 0d 2d 3e 20 6c | 69 6e 65 0d 69 73 20 61 |n...-> l|ine.is a|
|000046f0| 20 73 74 72 69 6e 67 20 | 28 6c 65 6e 67 74 68 20 | string |(length |
|00004700| 32 35 35 29 20 77 68 69 | 63 68 20 63 6f 6e 74 61 |255) whi|ch conta|
|00004710| 69 6e 73 20 74 68 65 20 | 74 65 78 74 20 74 68 61 |ins the |text tha|
|00004720| 74 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 62 65 |t you wa|nt to be|
|00004730| 20 73 70 6f 6b 65 6e 2e | 0d 0d 54 68 65 20 66 75 | spoken.|..The fu|
|00004740| 6c 6c 20 73 74 72 69 6e | 67 20 77 69 6c 6c 20 62 |ll strin|g will b|
|00004750| 65 20 73 70 6f 6b 65 6e | 20 61 6e 64 20 63 6f 6e |e spoken| and con|
|00004760| 74 72 6f 6c 20 77 69 6c | 6c 20 6e 6f 74 20 72 65 |trol wil|l not re|
|00004770| 74 75 72 6e 20 74 6f 20 | 34 44 20 75 6e 74 69 6c |turn to |4D until|
|00004780| 20 74 68 65 20 76 6f 69 | 63 65 20 69 73 20 66 69 | the voi|ce is fi|
|00004790| 6e 69 73 68 65 64 2e 20 | 49 74 20 69 73 20 6e 6f |nished. |It is no|
|000047a0| 74 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 63 61 |t possib|le to ca|
|000047b0| 6e 63 65 6c 2e 20 54 68 | 69 73 20 66 75 6e 63 74 |ncel. Th|is funct|
|000047c0| 69 6f 6e 20 63 61 6e 20 | 73 74 69 6c 6c 20 62 65 |ion can |still be|
|000047d0| 20 75 73 65 64 20 77 68 | 65 6e 20 74 68 65 20 6c | used wh|en the l|
|000047e0| 69 6d 69 74 20 6f 66 20 | 73 70 65 65 63 68 20 63 |imit of |speech c|
|000047f0| 68 61 6e 6e 65 6c 73 20 | 6f 70 65 6e 65 64 20 62 |hannels |opened b|
|00004800| 79 20 74 68 65 20 4f 70 | 65 6e 20 56 6f 69 63 65 |y the Op|en Voice|
|00004810| 20 66 75 6e 63 74 69 6f | 6e 20 68 61 73 20 62 65 | functio|n has be|
|00004820| 65 6e 20 72 65 61 63 68 | 65 64 2e 0d 41 6e 20 65 |en reach|ed..An e|
|00004830| 72 72 6f 72 20 77 69 6c | 6c 20 62 65 20 72 65 74 |rror wil|l be ret|
|00004840| 75 72 6e 65 64 20 69 66 | 20 74 68 65 72 65 20 74 |urned if| there t|
|00004850| 68 65 72 65 20 69 73 20 | 61 6c 72 65 61 64 79 20 |here is |already |
|00004860| 61 20 76 6f 69 63 65 20 | 62 65 69 6e 67 20 70 72 |a voice |being pr|
|00004870| 6f 64 75 63 65 64 2c 20 | 62 79 20 53 70 65 65 63 |oduced, |by Speec|
|00004880| 68 20 50 61 63 6b 20 6f | 72 20 62 79 20 61 6e 79 |h Pack o|r by any|
|00004890| 20 6f 74 68 65 72 20 73 | 6f 66 74 77 61 72 65 20 | other s|oftware |
|000048a0| 6f 6e 20 79 6f 75 72 20 | 63 6f 6d 70 75 74 65 72 |on your |computer|
|000048b0| 2e 0d 0d 45 78 61 6d 70 | 6c 65 73 3a 0d ca 24 65 |...Examp|les:..$e|
|000048c0| 72 72 20 3a 3d 20 53 50 | 20 53 70 65 61 6b 20 53 |rr := SP| Speak S|
|000048d0| 74 72 69 6e 67 20 28 22 | 2a 22 3b 22 4c 6f 6f 6b |tring ("|*";"Look|
|000048e0| 20 77 68 6f 20 69 73 20 | 74 61 6c 6b 69 6e 67 21 | who is |talking!|
|000048f0| 22 29 0d ca 24 65 72 72 | 20 3a 3d 20 53 50 20 53 |")..$err| := SP S|
|00004900| 70 65 61 6b 20 53 74 72 | 69 6e 67 20 28 22 4d 61 |peak Str|ing ("Ma|
|00004910| 72 76 69 6e 22 3b 24 6c | 69 6e 65 29 0d ca 24 65 |rvin";$l|ine)..$e|
|00004920| 72 72 20 3a 3d 20 53 50 | 20 53 70 65 61 6b 20 53 |rr := SP| Speak S|
|00004930| 74 72 69 6e 67 20 28 22 | 4d 61 72 76 69 6e 22 3b |tring ("|Marvin";|
|00004940| 5b 46 69 6c 65 20 31 5d | 4e 61 6d 65 29 0d 0d 50 |[File 1]|Name)..P|
|00004950| 6f 73 73 69 62 6c 65 20 | 65 72 72 6f 72 73 3a 0d |ossible |errors:.|
|00004960| ca ca ca ca 30 ca ca 4e | 6f 20 45 72 72 6f 72 0d |....0..N|o Error.|
|00004970| ca ca ca 2d 34 ca ca 53 | 70 65 65 63 68 20 50 61 |...-4..S|peech Pa|
|00004980| 63 6b 20 63 61 6e 20 6e | 6f 74 20 62 65 20 75 73 |ck can n|ot be us|
|00004990| 65 64 20 28 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |ed (Spee|ch Manag|
|000049a0| 65 72 20 6e 6f 74 20 61 | 76 61 69 6c 61 62 6c 65 |er not a|vailable|
|000049b0| 29 0d ca ca 2d 35 30 ca | ca 50 61 72 61 6d 65 74 |)...-50.|.Paramet|
|000049c0| 65 72 20 65 72 72 6f 72 | 20 28 69 6e 73 69 64 65 |er error| (inside|
|000049d0| 20 65 78 74 65 72 6e 61 | 6c 2c 20 6e 6f 74 20 6e | externa|l, not n|
|000049e0| 65 63 65 73 73 61 72 69 | 6c 79 20 74 68 65 20 70 |ecessari|ly the p|
|000049f0| 61 72 61 6d 65 74 65 72 | 73 20 79 6f 75 20 70 61 |arameter|s you pa|
|00004a00| 73 73 29 0d ca d0 31 30 | 38 ca ca 4e 6f 74 20 65 |ss)...10|8..Not e|
|00004a10| 6e 6f 75 67 68 20 6d 65 | 6d 6f 72 79 20 74 6f 20 |nough me|mory to |
|00004a20| 6c 6f 61 64 20 76 6f 69 | 63 65 20 69 6e 74 6f 20 |load voi|ce into |
|00004a30| 6d 65 6d 6f 72 79 09 0d | ca d0 32 34 31 ca ca 43 |memory..|..241..C|
|00004a40| 6f 75 6c 64 20 6e 6f 74 | 20 6f 70 65 6e 20 61 6e |ould not| open an|
|00004a50| 6f 74 68 65 72 20 73 70 | 65 65 63 68 20 73 79 6e |other sp|eech syn|
|00004a60| 74 68 65 73 69 7a 65 72 | 20 63 68 61 6e 6e 65 6c |thesizer| channel|
|00004a70| 09 0d ca 2d 32 34 32 ca | ca 56 6f 69 63 65 20 73 |...-242.|.Voice s|
|00004a80| 79 6e 74 68 65 73 69 7a | 65 72 20 69 73 20 6e 6f |ynthesiz|er is no|
|00004a90| 74 20 72 65 61 64 79 0d | ca 2d 32 34 34 ca ca 56 |t ready.|.-244..V|
|00004aa0| 6f 69 63 65 20 72 65 73 | 6f 75 72 63 65 20 6e 6f |oice res|ource no|
|00004ab0| 74 20 66 6f 75 6e 64 0d | ca 2d 32 34 37 ca ca 49 |t found.|.-247..I|
|00004ac0| 6e 70 75 74 20 74 65 78 | 74 20 62 61 64 0d d0 33 |nput tex|t bad..3|
|00004ad0| 30 30 30 ca ca 49 6e 76 | 61 6c 69 64 20 53 70 65 |000..Inv|alid Spe|
|00004ae0| 65 63 68 43 68 61 6e 6e | 65 6c 20 70 61 72 61 6d |echChann|el param|
|00004af0| 65 74 65 72 0d 41 6e 64 | 20 6d 65 6d 6f 72 79 20 |eter.And| memory |
|00004b00| 65 72 72 6f 72 73 20 61 | 6e 64 20 6f 74 68 65 72 |errors a|nd other|
|00004b10| 20 65 72 72 6f 72 73 20 | 41 70 70 6c 65 20 68 61 | errors |Apple ha|
|00004b20| 73 6e 27 74 20 74 6f 6c | 64 20 6d 65 20 61 62 6f |sn't tol|d me abo|
|00004b30| 75 74 2e 0d 0d 0d 53 50 | 20 53 70 65 61 6b 20 54 |ut....SP| Speak T|
|00004b40| 65 78 74 0d 0d 52 65 61 | 64 73 20 6f 75 74 20 74 |ext..Rea|ds out t|
|00004b50| 68 65 20 74 65 78 74 20 | 79 6f 75 20 70 61 73 73 |he text |you pass|
|00004b60| 20 75 73 69 6e 67 20 74 | 68 65 20 73 70 65 63 69 | using t|he speci|
|00004b70| 66 69 65 64 20 76 6f 69 | 63 65 20 61 6e 64 20 73 |fied voi|ce and s|
|00004b80| 74 61 72 74 69 6e 67 20 | 61 6e 64 20 73 74 6f 70 |tarting |and stop|
|00004b90| 70 69 6e 67 20 6f 6e 20 | 74 68 65 20 73 70 65 63 |ping on |the spec|
|00004ba0| 69 66 69 65 64 20 6c 6f | 63 61 74 69 6f 6e 73 2c |ified lo|cations,|
|00004bb0| 20 77 69 74 68 6f 75 74 | 20 72 65 74 75 72 6e 69 | without| returni|
|00004bc0| 6e 67 20 74 6f 20 34 44 | 20 75 6e 74 69 6c 20 74 |ng to 4D| until t|
|00004bd0| 68 65 20 6c 69 6e 65 73 | 20 68 61 76 65 20 62 65 |he lines| have be|
|00004be0| 65 6e 20 73 70 6f 6b 65 | 6e 2e 0d 0d 55 73 61 67 |en spoke|n...Usag|
|00004bf0| 65 3a 0d 65 72 72 20 3a | 3d 20 53 50 20 53 70 65 |e:.err :|= SP Spe|
|00004c00| 61 6b 20 54 65 78 74 20 | 28 76 6f 69 63 65 3b 20 |ak Text |(voice; |
|00004c10| 6c 69 6e 65 73 3b 20 7b | 66 69 72 73 74 7d 3b 20 |lines; {|first}; |
|00004c20| 7b 6c 61 73 74 7d 29 0d | 0d 77 68 65 72 65 3a 0d |{last}).|.where:.|
|00004c30| 3c 2d 20 65 72 72 0d 69 | 73 20 61 6e 20 69 6e 74 |<- err.i|s an int|
|00004c40| 65 67 65 72 20 72 65 74 | 75 72 6e 69 6e 67 20 74 |eger ret|urning t|
|00004c50| 68 65 20 65 72 72 6f 72 | 20 77 68 69 63 68 20 6f |he error| which o|
|00004c60| 63 63 75 72 65 64 2e 20 | 41 20 76 61 6c 75 65 20 |ccured. |A value |
|00004c70| 6f 66 20 7a 65 72 6f 20 | 69 6e 64 69 63 61 74 65 |of zero |indicate|
|00004c80| 73 20 6e 6f 20 65 72 72 | 6f 72 20 6f 63 63 75 72 |s no err|or occur|
|00004c90| 65 64 2e 20 53 65 65 20 | 62 65 6c 6f 77 20 66 6f |ed. See |below fo|
|00004ca0| 72 20 61 20 6c 69 73 74 | 20 6f 66 20 70 6f 73 73 |r a list| of poss|
|00004cb0| 69 62 6c 65 20 65 72 72 | 6f 72 73 2e 0d 0d 2d 3e |ible err|ors...->|
|00004cc0| 20 76 6f 69 63 65 0d 69 | 73 20 61 20 73 74 72 69 | voice.i|s a stri|
|00004cd0| 6e 67 20 28 6c 65 6e 67 | 74 68 20 36 33 2c 20 63 |ng (leng|th 63, c|
|00004ce0| 61 73 65 2d 73 65 6e 73 | 69 74 69 76 65 29 20 73 |ase-sens|itive) s|
|00004cf0| 70 65 63 69 66 79 69 6e | 67 20 74 68 65 20 76 6f |pecifyin|g the vo|
|00004d00| 69 63 65 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 |ice you |want to |
|00004d10| 75 73 65 2e 20 53 65 65 | 20 74 68 65 20 6c 69 73 |use. See| the lis|
|00004d20| 74 20 6f 66 20 61 76 61 | 69 6c 61 62 6c 65 20 76 |t of ava|ilable v|
|00004d30| 6f 69 63 65 73 20 69 6e | 63 6c 75 64 65 64 20 77 |oices in|cluded w|
|00004d40| 69 74 68 20 74 68 65 20 | 53 70 65 65 63 68 20 4d |ith the |Speech M|
|00004d50| 61 6e 61 67 65 72 20 65 | 78 74 65 6e 73 69 6f 6e |anager e|xtension|
|00004d60| 20 6f 72 20 69 6e 20 61 | 6e 79 20 76 6f 69 63 65 | or in a|ny voice|
|00004d70| 20 66 69 6c 65 20 69 6e | 20 74 68 65 20 53 79 73 | file in| the Sys|
|00004d80| 74 65 6d 20 46 6f 6c 64 | 65 72 20 61 6e 64 2f 6f |tem Fold|er and/o|
|00004d90| 72 20 45 78 74 65 6e 73 | 69 6f 6e 73 20 46 6f 6c |r Extens|ions Fol|
|00004da0| 64 65 72 2c 20 6f 72 20 | 75 73 65 20 74 68 65 20 |der, or |use the |
|00004db0| 43 6f 75 6e 74 20 76 6f | 69 63 65 73 20 61 6e 64 |Count vo|ices and|
|00004dc0| 20 56 6f 69 63 65 6e 61 | 6d 65 20 74 6f 20 6f 62 | Voicena|me to ob|
|00004dd0| 74 61 69 6e 20 74 68 69 | 73 20 69 6e 66 6f 72 6d |tain thi|s inform|
|00004de0| 61 74 69 6f 6e 2e 0d 0d | 2d 3e 20 6c 69 6e 65 73 |ation...|-> lines|
|00004df0| 0d 69 73 20 61 20 74 65 | 78 74 20 76 61 72 69 61 |.is a te|xt varia|
|00004e00| 62 6c 65 20 6f 72 20 66 | 69 65 6c 64 20 28 6c 65 |ble or f|ield (le|
|00004e10| 6e 67 74 68 20 33 32 4b | 29 20 77 68 69 63 68 20 |ngth 32K|) which |
|00004e20| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 74 65 78 |contains| the tex|
|00004e30| 74 20 74 68 61 74 20 79 | 6f 75 20 77 61 6e 74 20 |t that y|ou want |
|00004e40| 74 6f 20 62 65 20 73 70 | 6f 6b 65 6e 2e 0d 0d 2d |to be sp|oken...-|
|00004e50| 3e 20 66 69 72 73 74 0d | 69 73 20 61 6e 20 69 6e |> first.|is an in|
|00004e60| 74 65 67 65 72 20 73 70 | 65 63 69 66 79 69 6e 67 |teger sp|ecifying|
|00004e70| 20 6f 6e 20 77 68 69 63 | 68 20 6c 6f 63 61 74 69 | on whic|h locati|
|00004e80| 6f 6e 20 74 6f 20 73 74 | 61 72 74 20 72 65 61 64 |on to st|art read|
|00004e90| 69 6e 67 20 28 6c 69 6b | 65 20 74 68 65 20 27 66 |ing (lik|e the 'f|
|00004ea0| 69 72 73 74 27 20 70 61 | 72 61 6d 65 74 65 72 20 |irst' pa|rameter |
|00004eb0| 6f 66 20 74 68 65 20 47 | 45 54 20 48 49 47 48 4c |of the G|ET HIGHL|
|00004ec0| 49 47 48 54 20 61 6e 64 | 20 48 49 47 48 4c 49 47 |IGHT and| HIGHLIG|
|00004ed0| 48 54 20 54 45 58 54 20 | 63 6f 6d 6d 61 6e 64 73 |HT TEXT |commands|
|00004ee0| 29 2e 0d 0d 2d 3e 20 6c | 61 73 74 0d 69 73 20 61 |)...-> l|ast.is a|
|00004ef0| 6e 20 69 6e 74 65 67 65 | 72 20 73 70 65 63 69 66 |n intege|r specif|
|00004f00| 79 69 6e 67 20 6f 6e 20 | 77 68 69 63 68 20 6c 6f |ying on |which lo|
|00004f10| 63 61 74 69 6f 6e 20 74 | 6f 20 73 74 6f 70 20 72 |cation t|o stop r|
|00004f20| 65 61 64 69 6e 67 20 28 | 6c 69 6b 65 20 74 68 65 |eading (|like the|
|00004f30| 20 27 6c 61 73 74 27 20 | 70 61 72 61 6d 65 74 65 | 'last' |paramete|
|00004f40| 72 20 6f 66 20 74 68 65 | 20 47 45 54 20 48 49 47 |r of the| GET HIG|
|00004f50| 48 4c 49 47 48 54 20 61 | 6e 64 20 48 49 47 48 4c |HLIGHT a|nd HIGHL|
|00004f60| 49 47 48 54 20 54 45 58 | 54 20 63 6f 6d 6d 61 6e |IGHT TEX|T comman|
|00004f70| 64 73 29 2e 0d 54 68 69 | 73 20 69 73 20 74 68 65 |ds)..Thi|s is the|
|00004f80| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 74 68 65 | positio|n of the|
|00004f90| 20 6c 61 73 74 20 63 68 | 61 72 61 63 74 65 72 20 | last ch|aracter |
|00004fa0| 73 65 6c 65 63 74 65 64 | 20 70 6c 75 73 20 6f 6e |selected| plus on|
|00004fb0| 65 21 20 53 65 65 20 74 | 68 65 20 4c 61 6e 67 75 |e! See t|he Langu|
|00004fc0| 61 67 65 20 52 65 66 65 | 72 65 6e 63 65 20 61 62 |age Refe|rence ab|
|00004fd0| 6f 75 74 20 74 68 65 20 | 74 77 6f 20 34 44 20 63 |out the |two 4D c|
|00004fe0| 6f 6d 6d 61 6e 64 73 20 | 6d 65 6e 74 69 6f 6e 65 |ommands |mentione|
|00004ff0| 64 2e 0d 0d 54 68 65 20 | 73 70 65 63 69 66 69 65 |d...The |specifie|
|00005000| 64 20 70 61 72 74 20 6f | 66 20 74 68 65 20 74 65 |d part o|f the te|
|00005010| 78 74 20 77 69 6c 6c 20 | 62 65 20 73 70 6f 6b 65 |xt will |be spoke|
|00005020| 6e 20 61 6e 64 20 63 6f | 6e 74 72 6f 6c 20 77 69 |n and co|ntrol wi|
|00005030| 6c 6c 20 6e 6f 74 20 72 | 65 74 75 72 6e 20 74 6f |ll not r|eturn to|
|00005040| 20 34 44 20 75 6e 74 69 | 6c 20 74 68 65 20 76 6f | 4D unti|l the vo|
|00005050| 69 63 65 20 69 73 20 66 | 69 6e 69 73 68 65 64 2e |ice is f|inished.|
|00005060| 20 49 74 20 69 73 20 6e | 6f 74 20 70 6f 73 73 69 | It is n|ot possi|
|00005070| 62 6c 65 20 74 6f 20 63 | 61 6e 63 65 6c 2e 20 54 |ble to c|ancel. T|
|00005080| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 63 61 6e |his func|tion can|
|00005090| 20 73 74 69 6c 6c 20 62 | 65 20 75 73 65 64 20 77 | still b|e used w|
|000050a0| 68 65 6e 20 74 68 65 20 | 6c 69 6d 69 74 20 6f 66 |hen the |limit of|
|000050b0| 20 73 70 65 65 63 68 20 | 63 68 61 6e 6e 65 6c 73 | speech |channels|
|000050c0| 20 6f 70 65 6e 65 64 20 | 62 79 20 74 68 65 20 4f | opened |by the O|
|000050d0| 70 65 6e 20 56 6f 69 63 | 65 20 66 75 6e 63 74 69 |pen Voic|e functi|
|000050e0| 6f 6e 20 68 61 73 20 62 | 65 65 6e 20 72 65 61 63 |on has b|een reac|
|000050f0| 68 65 64 2e 0d 49 66 20 | 6f 6e 65 20 6f 66 20 74 |hed..If |one of t|
|00005100| 68 65 20 27 66 69 72 73 | 74 27 20 61 6e 64 20 27 |he 'firs|t' and '|
|00005110| 6c 61 73 74 27 20 70 61 | 72 61 6d 65 74 65 72 73 |last' pa|rameters|
|00005120| 20 69 73 20 6e 6f 74 20 | 70 61 73 73 65 64 2c 20 | is not |passed, |
|00005130| 7a 65 72 6f 20 6f 72 20 | 69 66 20 74 68 65 79 20 |zero or |if they |
|00005140| 61 72 65 20 65 71 75 61 | 6c 20 74 68 65 20 66 75 |are equa|l the fu|
|00005150| 6c 6c 20 74 65 78 74 20 | 77 69 6c 6c 20 62 65 20 |ll text |will be |
|00005160| 72 65 61 64 20 74 6f 20 | 79 6f 75 2e 20 41 6e 64 |read to |you. And|
|00005170| 2c 20 6f 66 63 6f 75 72 | 73 65 2c 20 61 6c 73 6f |, ofcour|se, also|
|00005180| 20 77 68 65 6e 20 27 66 | 69 72 73 74 27 20 69 73 | when 'f|irst' is|
|00005190| 20 6f 6e 65 20 28 31 29 | 20 61 6e 64 20 27 6c 61 | one (1)| and 'la|
|000051a0| 73 74 27 20 69 73 20 74 | 68 65 20 6c 65 6e 67 74 |st' is t|he lengt|
|000051b0| 68 20 6f 66 20 74 68 65 | 20 74 65 78 74 20 70 6c |h of the| text pl|
|000051c0| 75 73 20 6f 6e 65 2e 0d | 0d 45 78 61 6d 70 6c 65 |us one..|.Example|
|000051d0| 73 3a 0d ca ca 60 74 68 | 65 73 65 20 61 6c 6c 20 |s:...`th|ese all |
|000051e0| 68 61 76 65 20 74 68 65 | 20 73 61 6d 65 20 65 66 |have the| same ef|
|000051f0| 66 65 63 74 0d ca ca 24 | 65 72 72 20 3a 3d 20 53 |fect...$|err := S|
|00005200| 50 20 53 70 65 61 6b 20 | 54 65 78 74 20 28 22 4d |P Speak |Text ("M|
|00005210| 61 72 76 69 6e 22 3b 5b | 46 69 6c 65 20 31 5d 44 |arvin";[|File 1]D|
|00005220| 65 73 63 72 69 70 74 69 | 6f 6e 3b 30 3b 30 29 0d |escripti|on;0;0).|
|00005230| ca ca 24 65 72 72 20 3a | 3d 20 53 50 20 53 70 65 |..$err :|= SP Spe|
|00005240| 61 6b 20 54 65 78 74 20 | 28 22 4d 61 72 76 69 6e |ak Text |("Marvin|
|00005250| 22 3b 5b 46 69 6c 65 20 | 31 5d 44 65 73 63 72 69 |";[File |1]Descri|
|00005260| 70 74 69 6f 6e 3b 31 3b | 31 29 0d ca ca 24 65 72 |ption;1;|1)...$er|
|00005270| 72 20 3a 3d 20 53 50 20 | 53 70 65 61 6b 20 54 65 |r := SP |Speak Te|
|00005280| 78 74 20 28 22 4d 61 72 | 76 69 6e 22 3b 5b 46 69 |xt ("Mar|vin";[Fi|
|00005290| 6c 65 20 31 5d 44 65 73 | 63 72 69 70 74 69 6f 6e |le 1]Des|cription|
|000052a0| 29 0d ca ca 24 65 72 72 | 20 3a 3d 20 53 50 20 53 |)...$err| := SP S|
|000052b0| 70 65 61 6b 20 54 65 78 | 74 20 28 22 4d 61 72 76 |peak Tex|t ("Marv|
|000052c0| 69 6e 22 3b 5b 46 69 6c | 65 20 31 5d 44 65 73 63 |in";[Fil|e 1]Desc|
|000052d0| 72 69 70 74 69 6f 6e 3b | 31 3b 33 32 30 30 30 29 |ription;|1;32000)|
|000052e0| 0d ca ca 24 65 72 72 20 | 3a 3d 20 53 50 20 53 70 |...$err |:= SP Sp|
|000052f0| 65 61 6b 20 54 65 78 74 | 20 28 22 4d 61 72 76 69 |eak Text| ("Marvi|
|00005300| 6e 22 3b 5b 46 69 6c 65 | 20 31 5d 44 65 73 63 72 |n";[File| 1]Descr|
|00005310| 69 70 74 69 6f 6e 3b 31 | 3b 4c 65 6e 67 74 68 20 |iption;1|;Length |
|00005320| 28 5b 46 69 6c 65 20 31 | 5d 44 65 73 63 72 69 70 |([File 1|]Descrip|
|00005330| 74 69 6f 6e 29 20 2b 20 | 31 29 0d 0d ca ca 60 61 |tion) + |1)....`a|
|00005340| 6e 64 20 74 68 69 73 20 | 6f 6e 65 20 77 69 6c 6c |nd this |one will|
|00005350| 20 69 67 6e 6f 72 65 20 | 74 68 65 20 6c 61 73 74 | ignore |the last|
|00005360| 20 63 68 61 72 61 63 74 | 65 72 0d ca ca 24 65 72 | charact|er...$er|
|00005370| 72 20 3a 3d 20 53 50 20 | 53 70 65 61 6b 20 54 65 |r := SP |Speak Te|
|00005380| 78 74 20 28 22 4d 61 72 | 76 69 6e 22 3b 5b 46 69 |xt ("Mar|vin";[Fi|
|00005390| 6c 65 20 31 5d 44 65 73 | 63 72 69 70 74 69 6f 6e |le 1]Des|cription|
|000053a0| 3b 31 3b 4c 65 6e 67 74 | 68 20 28 5b 46 69 6c 65 |;1;Lengt|h ([File|
|000053b0| 20 31 5d 44 65 73 63 72 | 69 70 74 69 6f 6e 29 29 | 1]Descr|iption))|
|000053c0| 0d 0d ca ca 60 61 6e 64 | 20 74 68 69 73 20 6f 6e |....`and| this on|
|000053d0| 65 20 77 69 6c 6c 20 6f | 6e 6c 79 20 73 61 79 20 |e will o|nly say |
|000053e0| 22 53 70 65 65 63 68 20 | 4d 61 6e 61 67 65 72 22 |"Speech |Manager"|
|000053f0| 0d ca ca 24 6c 69 6e 65 | 73 20 3a 3d 20 22 54 65 |...$line|s := "Te|
|00005400| 73 74 69 6e 67 20 53 70 | 65 65 63 68 20 4d 61 6e |sting Sp|eech Man|
|00005410| 61 67 65 72 22 0d ca ca | 24 65 72 72 20 3a 3d 20 |ager"...|$err := |
|00005420| 53 50 20 53 70 65 61 6b | 20 54 65 78 74 20 28 22 |SP Speak| Text ("|
|00005430| 4d 61 72 76 69 6e 22 3b | 24 6c 69 6e 65 73 3b 39 |Marvin";|$lines;9|
|00005440| 3b 4c 65 6e 67 74 68 20 | 28 24 6c 69 6e 65 73 29 |;Length |($lines)|
|00005450| 20 2b 20 31 29 0d 0d 50 | 6f 73 73 69 62 6c 65 20 | + 1)..P|ossible |
|00005460| 65 72 72 6f 72 73 3a 0d | ca ca ca ca 30 ca ca 4e |errors:.|....0..N|
|00005470| 6f 20 45 72 72 6f 72 0d | ca ca ca 2d 34 ca ca 53 |o Error.|...-4..S|
|00005480| 70 65 65 63 68 20 50 61 | 63 6b 20 63 61 6e 20 6e |peech Pa|ck can n|
|00005490| 6f 74 20 62 65 20 75 73 | 65 64 20 28 53 70 65 65 |ot be us|ed (Spee|
|000054a0| 63 68 20 4d 61 6e 61 67 | 65 72 20 6e 6f 74 20 61 |ch Manag|er not a|
|000054b0| 76 61 69 6c 61 62 6c 65 | 29 0d ca ca 2d 35 30 ca |vailable|)...-50.|
|000054c0| ca 50 61 72 61 6d 65 74 | 65 72 20 65 72 72 6f 72 |.Paramet|er error|
|000054d0| 20 28 69 6e 73 69 64 65 | 20 65 78 74 65 72 6e 61 | (inside| externa|
|000054e0| 6c 2c 20 6e 6f 74 20 6e | 65 63 65 73 73 61 72 69 |l, not n|ecessari|
|000054f0| 6c 79 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |ly the p|arameter|
|00005500| 73 20 79 6f 75 20 70 61 | 73 73 29 0d ca d0 31 30 |s you pa|ss)...10|
|00005510| 38 ca ca 4e 6f 74 20 65 | 6e 6f 75 67 68 20 6d 65 |8..Not e|nough me|
|00005520| 6d 6f 72 79 20 74 6f 20 | 6c 6f 61 64 20 76 6f 69 |mory to |load voi|
|00005530| 63 65 20 69 6e 74 6f 20 | 6d 65 6d 6f 72 79 09 0d |ce into |memory..|
|00005540| ca d0 32 34 31 ca ca 43 | 6f 75 6c 64 20 6e 6f 74 |..241..C|ould not|
|00005550| 20 6f 70 65 6e 20 61 6e | 6f 74 68 65 72 20 73 70 | open an|other sp|
|00005560| 65 65 63 68 20 73 79 6e | 74 68 65 73 69 7a 65 72 |eech syn|thesizer|
|00005570| 20 63 68 61 6e 6e 65 6c | 09 0d ca 2d 32 34 32 ca | channel|...-242.|
|00005580| ca 56 6f 69 63 65 20 73 | 79 6e 74 68 65 73 69 7a |.Voice s|ynthesiz|
|00005590| 65 72 20 69 73 20 6e 6f | 74 20 72 65 61 64 79 0d |er is no|t ready.|
|000055a0| ca 2d 32 34 34 ca ca 56 | 6f 69 63 65 20 72 65 73 |.-244..V|oice res|
|000055b0| 6f 75 72 63 65 20 6e 6f | 74 20 66 6f 75 6e 64 0d |ource no|t found.|
|000055c0| ca 2d 32 34 37 ca ca 49 | 6e 70 75 74 20 74 65 78 |.-247..I|nput tex|
|000055d0| 74 20 62 61 64 0d d0 33 | 30 30 30 ca ca 49 6e 76 |t bad..3|000..Inv|
|000055e0| 61 6c 69 64 20 53 70 65 | 65 63 68 43 68 61 6e 6e |alid Spe|echChann|
|000055f0| 65 6c 20 70 61 72 61 6d | 65 74 65 72 0d 41 6e 64 |el param|eter.And|
|00005600| 20 6d 65 6d 6f 72 79 20 | 65 72 72 6f 72 73 20 61 | memory |errors a|
|00005610| 6e 64 20 6f 74 68 65 72 | 20 65 72 72 6f 72 73 20 |nd other| errors |
|00005620| 41 70 70 6c 65 20 68 61 | 73 6e 27 74 20 74 6f 6c |Apple ha|sn't tol|
|00005630| 64 20 6d 65 20 61 62 6f | 75 74 2e 0d 0d 0d 49 6e |d me abo|ut....In|
|00005640| 66 6f 72 6d 61 74 69 6f | 6e 0d 53 50 20 43 61 6e |formatio|n.SP Can|
|00005650| 20 73 70 65 61 6b 0d 0d | 52 65 74 75 72 6e 73 20 | speak..|Returns |
|00005660| 61 6e 20 69 6e 74 65 67 | 65 72 20 69 6e 64 69 63 |an integ|er indic|
|00005670| 61 74 69 6e 67 20 69 66 | 20 74 68 65 20 53 70 65 |ating if| the Spe|
|00005680| 65 63 68 20 4d 61 6e 61 | 67 65 72 20 69 73 20 70 |ech Mana|ger is p|
|00005690| 72 65 73 65 6e 74 2e 0d | 0d 55 73 61 67 65 3a 0d |resent..|.Usage:.|
|000056a0| 70 72 65 73 65 6e 74 20 | 3a 3d 20 53 50 20 43 61 |present |:= SP Ca|
|000056b0| 6e 20 73 70 65 61 6b 0d | 0d 77 68 65 72 65 3a 0d |n speak.|.where:.|
|000056c0| 3c 2d 20 70 72 65 73 65 | 6e 74 0d 69 73 20 61 6e |<- prese|nt.is an|
|000056d0| 20 69 6e 74 65 67 65 72 | 20 69 6e 64 69 63 61 74 | integer| indicat|
|000056e0| 69 6e 67 20 69 66 20 74 | 68 65 20 53 70 65 65 63 |ing if t|he Speec|
|000056f0| 68 20 4d 61 6e 61 67 65 | 72 20 69 73 20 70 72 65 |h Manage|r is pre|
|00005700| 73 65 6e 74 20 61 6e 64 | 20 69 66 20 74 68 65 20 |sent and| if the |
|00005710| 65 78 74 65 72 6e 61 6c | 20 77 61 73 20 61 62 6c |external| was abl|
|00005720| 65 20 74 6f 20 73 65 74 | 20 73 6f 6d 65 20 69 6e |e to set| some in|
|00005730| 74 65 72 6e 61 6c 20 64 | 61 74 61 20 70 72 6f 70 |ternal d|ata prop|
|00005740| 65 72 6c 79 2c 20 61 6e | 64 20 74 68 75 73 20 61 |erly, an|d thus a|
|00005750| 6c 6c 20 6f 74 68 65 72 | 20 66 75 6e 63 74 69 6f |ll other| functio|
|00005760| 6e 73 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 28 |ns can b|e used (|
|00005770| 65 78 63 65 70 74 20 43 | 6f 70 79 72 69 67 68 74 |except C|opyright|
|00005780| 20 77 68 69 63 68 20 63 | 61 6e 20 61 6c 77 61 79 | which c|an alway|
|00005790| 73 20 62 65 20 75 73 65 | 64 29 2e 20 49 66 20 79 |s be use|d). If y|
|000057a0| 6f 75 20 63 61 6c 6c 20 | 61 6e 79 20 66 75 6e 63 |ou call |any func|
|000057b0| 74 69 6f 6e 20 6f 72 20 | 70 72 6f 63 65 64 75 72 |tion or |procedur|
|000057c0| 65 20 77 68 69 63 68 20 | 6e 65 65 64 73 20 74 68 |e which |needs th|
|000057d0| 65 20 53 70 65 65 63 68 | 20 4d 61 6e 61 67 65 72 |e Speech| Manager|
|000057e0| 20 77 68 69 6c 65 20 69 | 74 20 69 73 20 6e 6f 74 | while i|t is not|
|000057f0| 20 70 72 65 73 65 6e 74 | 20 61 6e 20 65 72 72 6f | present| an erro|
|00005800| 72 20 77 69 6c 6c 20 62 | 65 20 72 65 74 75 72 6e |r will b|e return|
|00005810| 65 64 20 28 2d 34 29 2e | 20 42 75 74 20 74 68 65 |ed (-4).| But the|
|00005820| 20 43 61 6e 20 73 70 65 | 61 6b 20 66 75 6e 63 74 | Can spe|ak funct|
|00005830| 69 6f 6e 20 65 6e 61 62 | 6c 65 73 20 79 6f 75 20 |ion enab|les you |
|00005840| 74 6f 20 63 68 65 63 6b | 20 74 68 69 73 20 62 65 |to check| this be|
|00005850| 66 6f 72 65 68 61 6e 64 | 2e 20 41 74 20 74 68 65 |forehand|. At the|
|00005860| 20 6d 6f 6d 65 6e 74 20 | 74 68 65 73 65 20 76 61 | moment |these va|
|00005870| 6c 75 65 73 20 63 61 6e | 20 62 65 20 72 65 74 75 |lues can| be retu|
|00005880| 72 6e 65 64 3a 0d ca 30 | ca ca 53 70 65 65 63 68 |rned:..0|..Speech|
|00005890| 20 50 61 63 6b 20 6e 6f | 74 20 75 73 61 62 6c 65 | Pack no|t usable|
|000058a0| 2c 20 65 78 74 65 72 6e | 61 6c 20 70 61 63 6b 61 |, extern|al packa|
|000058b0| 67 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 63 61 6e |ge funct|ions can|
|000058c0| 27 74 20 62 65 20 63 61 | 6c 6c 65 64 2e 0d ca 31 |'t be ca|lled...1|
|000058d0| ca ca 53 70 65 65 63 68 | 20 50 61 63 6b 20 75 73 |..Speech| Pack us|
|000058e0| 61 62 6c 65 2c 20 65 78 | 74 65 72 6e 61 6c 20 70 |able, ex|ternal p|
|000058f0| 61 63 6b 61 67 65 20 66 | 75 6e 63 74 69 6f 6e 73 |ackage f|unctions|
|00005900| 20 63 61 6e 20 62 65 20 | 63 61 6c 6c 65 64 2e 0d | can be |called..|
|00005910| 28 32 20 61 6e 64 20 68 | 69 67 68 65 72 20 6d 61 |(2 and h|igher ma|
|00005920| 79 20 62 65 20 75 73 65 | 64 20 6c 61 74 65 72 20 |y be use|d later |
|00005930| 66 6f 72 20 77 68 65 6e | 20 6f 74 68 65 72 20 61 |for when| other a|
|00005940| 62 69 6c 69 74 69 65 73 | 20 61 72 65 20 61 64 64 |bilities| are add|
|00005950| 65 64 20 74 6f 20 74 68 | 65 20 53 70 65 65 63 68 |ed to th|e Speech|
|00005960| 20 4d 61 6e 61 67 65 72 | 20 61 6e 64 20 74 68 65 | Manager| and the|
|00005970| 73 65 20 61 72 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |se are i|mplement|
|00005980| 65 64 20 69 6e 20 74 68 | 69 73 20 65 78 74 65 72 |ed in th|is exter|
|00005990| 6e 61 6c 2c 20 73 6f 20 | 65 76 65 72 79 20 76 61 |nal, so |every va|
|000059a0| 6c 75 65 20 67 72 65 61 | 74 65 72 20 74 68 65 6e |lue grea|ter then|
|000059b0| 20 30 20 69 6d 70 6c 69 | 65 73 20 74 68 65 20 70 | 0 impli|es the p|
|000059c0| 72 65 73 65 6e 63 65 20 | 6f 66 20 74 68 65 20 53 |resence |of the S|
|000059d0| 70 65 65 63 68 20 4d 61 | 6e 61 67 65 72 2e 29 0d |peech Ma|nager.).|
|000059e0| 0d 45 78 61 6d 70 6c 65 | 3a 0d 0d ca 24 70 72 65 |.Example|:...$pre|
|000059f0| 73 65 6e 74 20 3a 3d 20 | 53 50 20 43 61 6e 20 73 |sent := |SP Can s|
|00005a00| 70 65 61 6b 0d 0d ca 49 | 66 20 28 24 70 72 65 73 |peak...I|f ($pres|
|00005a10| 65 6e 74 20 3d 20 30 29 | 0d ca ca 41 4c 45 52 54 |ent = 0)|...ALERT|
|00005a20| 20 28 22 53 70 65 65 63 | 68 20 50 61 63 6b 20 6e | ("Speec|h Pack n|
|00005a30| 6f 74 20 61 76 61 69 6c | 61 62 6c 65 2e 22 29 0d |ot avail|able.").|
|00005a40| ca 45 6c 73 65 0d ca ca | 41 4c 45 52 54 20 28 22 |.Else...|ALERT ("|
|00005a50| 53 70 65 65 63 68 20 50 | 61 63 6b 20 61 76 61 69 |Speech P|ack avai|
|00005a60| 6c 61 62 6c 65 2e 22 29 | 0d ca 45 6e 64 20 69 66 |lable.")|..End if|
|00005a70| 0d 0d 0d 53 50 20 56 65 | 72 73 69 6f 6e 0d 0d 52 |...SP Ve|rsion..R|
|00005a80| 65 74 75 72 6e 73 20 74 | 68 65 20 76 65 72 73 69 |eturns t|he versi|
|00005a90| 6f 6e 73 20 6f 66 20 74 | 68 65 20 53 70 65 65 63 |ons of t|he Speec|
|00005aa0| 68 20 4d 61 6e 61 67 65 | 72 20 61 6e 64 20 53 70 |h Manage|r and Sp|
|00005ab0| 65 65 63 68 20 50 61 63 | 6b 20 65 78 74 65 72 6e |eech Pac|k extern|
|00005ac0| 61 6c 2e 0d 0d 55 73 61 | 67 65 3a 0d 53 50 20 56 |al...Usa|ge:.SP V|
|00005ad0| 65 72 73 69 6f 6e 20 28 | 76 65 72 73 69 6f 6e 6d |ersion (|versionm|
|00005ae0| 67 72 3b 20 76 65 72 73 | 69 6f 6e 70 63 6b 29 0d |gr; vers|ionpck).|
|00005af0| 0d 77 68 65 72 65 3a 0d | 3c 2d 20 76 65 72 73 69 |.where:.|<- versi|
|00005b00| 6f 6e 6d 67 72 0d 69 73 | 20 61 20 73 74 72 69 6e |onmgr.is| a strin|
|00005b10| 67 20 28 6c 65 6e 67 74 | 68 20 31 35 29 20 77 68 |g (lengt|h 15) wh|
|00005b20| 69 63 68 20 63 6f 6e 74 | 61 69 6e 73 20 6f 6e 20 |ich cont|ains on |
|00005b30| 72 65 74 75 72 6e 20 74 | 68 65 20 76 65 72 73 69 |return t|he versi|
|00005b40| 6f 6e 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |on numbe|r of the|
|00005b50| 20 69 6e 73 74 61 6c 6c | 65 64 20 53 70 65 65 63 | install|ed Speec|
|00005b60| 68 20 4d 61 6e 61 67 65 | 72 20 73 6f 66 74 77 61 |h Manage|r softwa|
|00005b70| 72 65 2e 0d 0d 3c 2d 20 | 76 65 72 73 69 6f 6e 70 |re...<- |versionp|
|00005b80| 63 6b 0d 69 73 20 61 20 | 73 74 72 69 6e 67 20 28 |ck.is a |string (|
|00005b90| 6c 65 6e 67 74 68 20 31 | 35 29 20 77 68 69 63 68 |length 1|5) which|
|00005ba0| 20 63 6f 6e 74 61 69 6e | 73 20 6f 6e 20 72 65 74 | contain|s on ret|
|00005bb0| 75 72 6e 20 74 68 65 20 | 76 65 72 73 69 6f 6e 20 |urn the |version |
|00005bc0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 69 6e |number o|f the in|
|00005bd0| 73 74 61 6c 6c 65 64 20 | 53 70 65 65 63 68 20 50 |stalled |Speech P|
|00005be0| 61 63 6b 20 65 78 74 65 | 72 6e 61 6c 2e 0d 0d 49 |ack exte|rnal...I|
|00005bf0| 66 20 74 68 65 20 53 70 | 65 65 63 68 20 4d 61 6e |f the Sp|eech Man|
|00005c00| 61 67 65 72 20 69 73 20 | 6e 6f 74 20 69 6e 73 74 |ager is |not inst|
|00005c10| 61 6c 6c 65 64 20 61 6e | 20 65 6d 70 74 79 20 73 |alled an| empty s|
|00005c20| 74 72 69 6e 67 20 77 69 | 6c 6c 20 62 65 20 72 65 |tring wi|ll be re|
|00005c30| 74 75 72 6e 65 64 2e 0d | 0d 45 78 61 6d 70 6c 65 |turned..|.Example|
|00005c40| 3a 0d 0d ca 53 50 20 56 | 65 72 73 69 6f 6e 20 28 |:...SP V|ersion (|
|00005c50| 24 6d 67 72 76 65 72 73 | 3b 24 70 61 63 6b 76 65 |$mgrvers|;$packve|
|00005c60| 72 73 29 0d 0d 0d 53 50 | 20 43 6f 75 6e 74 20 76 |rs)...SP| Count v|
|00005c70| 6f 69 63 65 73 0d 0d 52 | 65 74 75 72 6e 73 20 74 |oices..R|eturns t|
|00005c80| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 76 6f 69 |he numbe|r of voi|
|00005c90| 63 65 73 20 63 75 72 72 | 65 6e 74 6c 79 20 69 6e |ces curr|ently in|
|00005ca0| 73 74 61 6c 6c 65 64 20 | 61 6e 64 20 61 76 61 69 |stalled |and avai|
|00005cb0| 6c 61 62 6c 65 20 74 6f | 20 74 68 65 20 65 78 74 |lable to| the ext|
|00005cc0| 65 72 6e 61 6c 2e 0d 0d | 55 73 61 67 65 3a 0d 63 |ernal...|Usage:.c|
|00005cd0| 6f 75 6e 74 20 3a 3d 20 | 53 50 20 43 6f 75 6e 74 |ount := |SP Count|
|00005ce0| 20 76 6f 69 63 65 73 0d | 0d 77 68 65 72 65 3a 0d | voices.|.where:.|
|00005cf0| 3c 2d 20 63 6f 75 6e 74 | 0d 69 73 20 61 6e 20 69 |<- count|.is an i|
|00005d00| 6e 74 65 67 65 72 20 69 | 6e 64 69 63 61 74 69 6e |nteger i|ndicatin|
|00005d10| 67 20 68 6f 77 20 6d 61 | 6e 79 20 76 6f 69 63 65 |g how ma|ny voice|
|00005d20| 73 20 61 72 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |s are cu|rrently |
|00005d30| 69 6e 73 74 61 6c 6c 65 | 64 20 69 6e 20 79 6f 75 |installe|d in you|
|00005d40| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 61 6e |r applic|ation an|
|00005d50| 64 2f 6f 72 20 73 79 73 | 74 65 6d 20 66 6f 6c 64 |d/or sys|tem fold|
|00005d60| 65 72 2e 0d 0d 54 68 69 | 73 20 63 61 6e 20 62 65 |er...Thi|s can be|
|00005d70| 20 75 73 65 64 20 61 73 | 20 74 68 65 20 6d 61 78 | used as| the max|
|00005d80| 69 6d 75 6d 20 69 6e 64 | 65 78 20 6e 75 6d 62 65 |imum ind|ex numbe|
|00005d90| 72 20 77 68 69 63 68 20 | 79 6f 75 20 63 61 6e 20 |r which |you can |
|00005da0| 75 73 65 20 77 69 74 68 | 20 56 6f 69 63 65 6e 61 |use with| Voicena|
|00005db0| 6d 65 2e 0d 0d 45 78 61 | 6d 70 6c 65 73 3a 0d ca |me...Exa|mples:..|
|00005dc0| 24 63 6f 75 6e 74 20 3a | 3d 20 53 50 20 43 6f 75 |$count :|= SP Cou|
|00005dd0| 6e 74 20 56 6f 69 63 65 | 73 0d 0d ca 41 4c 45 52 |nt Voice|s...ALER|
|00005de0| 54 20 28 22 54 68 65 72 | 65 20 61 72 65 20 22 2b |T ("Ther|e are "+|
|00005df0| 53 74 72 69 6e 67 28 53 | 50 20 43 6f 75 6e 74 20 |String(S|P Count |
|00005e00| 76 6f 69 63 65 73 29 2b | 22 20 76 6f 69 63 65 28 |voices)+|" voice(|
|00005e10| 73 29 20 69 6e 73 74 61 | 6c 6c 65 64 2e 22 29 0d |s) insta|lled.").|
|00005e20| 0d ca 60 73 69 6e 63 65 | 20 74 68 69 73 20 6e 75 |..`since| this nu|
|00005e30| 6d 62 65 72 20 63 61 6e | 20 62 65 20 75 73 65 64 |mber can| be used|
|00005e40| 20 61 73 20 61 20 6c 69 | 6d 69 74 20 6f 66 20 74 | as a li|mit of t|
|00005e50| 68 65 20 69 6e 64 65 78 | 20 6e 65 65 64 65 64 20 |he index| needed |
|00005e60| 77 69 74 68 20 74 68 65 | 20 56 6f 69 63 65 6e 61 |with the| Voicena|
|00005e70| 6d 65 20 66 75 6e 63 74 | 69 6f 6e 3a 0d ca 46 6f |me funct|ion:..Fo|
|00005e80| 72 20 28 24 69 3b 31 3b | 53 50 20 43 6f 75 6e 74 |r ($i;1;|SP Count|
|00005e90| 20 76 6f 69 63 65 73 29 | 0d ca ca 60 64 6f 20 73 | voices)|...`do s|
|00005ea0| 6f 6d 65 74 68 69 6e 67 | 20 68 65 72 65 2c 20 6c |omething| here, l|
|00005eb0| 69 6b 65 3a 0d ca ca 24 | 65 72 72 20 3a 3d 20 53 |ike:...$|err := S|
|00005ec0| 50 20 56 6f 69 63 65 6e | 61 6d 65 20 28 24 69 3b |P Voicen|ame ($i;|
|00005ed0| 24 76 6f 69 63 65 6e 61 | 6d 65 29 0d ca 45 6e 64 |$voicena|me)..End|
|00005ee0| 20 66 6f 72 0d 0d 0d 53 | 50 20 56 6f 69 63 65 6e | for...S|P Voicen|
|00005ef0| 61 6d 65 0d 0d 52 65 74 | 75 72 6e 73 20 74 68 65 |ame..Ret|urns the|
|00005f00| 20 6e 61 6d 65 20 6f 66 | 20 61 20 76 6f 69 63 65 | name of| a voice|
|00005f10| 20 62 61 73 65 64 20 6f | 6e 20 61 6e 20 69 6e 64 | based o|n an ind|
|00005f20| 65 78 20 6e 75 6d 62 65 | 72 2e 0d 0d 55 73 61 67 |ex numbe|r...Usag|
|00005f30| 65 3a 0d 65 72 72 20 3a | 3d 20 53 50 20 56 6f 69 |e:.err :|= SP Voi|
|00005f40| 63 65 6e 61 6d 65 20 28 | 69 6e 64 65 78 3b 20 76 |cename (|index; v|
|00005f50| 6f 69 63 65 29 0d 0d 77 | 68 65 72 65 3a 0d 3c 2d |oice)..w|here:.<-|
|00005f60| 20 65 72 72 0d 69 73 20 | 61 6e 20 69 6e 74 65 67 | err.is |an integ|
|00005f70| 65 72 20 72 65 74 75 72 | 6e 69 6e 67 20 74 68 65 |er retur|ning the|
|00005f80| 20 65 72 72 6f 72 20 77 | 68 69 63 68 20 6f 63 63 | error w|hich occ|
|00005f90| 75 72 65 64 2e 20 41 20 | 76 61 6c 75 65 20 6f 66 |ured. A |value of|
|00005fa0| 20 7a 65 72 6f 20 69 6e | 64 69 63 61 74 65 73 20 | zero in|dicates |
|00005fb0| 6e 6f 20 65 72 72 6f 72 | 20 6f 63 63 75 72 65 64 |no error| occured|
|00005fc0| 2e 20 53 65 65 20 62 65 | 6c 6f 77 20 66 6f 72 20 |. See be|low for |
|00005fd0| 61 20 6c 69 73 74 20 6f | 66 20 70 6f 73 73 69 62 |a list o|f possib|
|00005fe0| 6c 65 20 65 72 72 6f 72 | 73 2e 0d 0d 2d 3e 20 69 |le error|s...-> i|
|00005ff0| 6e 64 65 78 0d 69 73 20 | 61 6e 20 69 6e 74 65 67 |ndex.is |an integ|
|00006000| 65 72 20 79 6f 75 20 73 | 70 65 63 69 66 79 20 66 |er you s|pecify f|
|00006010| 6f 72 20 74 68 65 20 6e | 2d 74 68 20 76 6f 69 63 |or the n|-th voic|
|00006020| 65 6e 61 6d 65 20 79 6f | 75 20 77 61 6e 74 2e 20 |ename yo|u want. |
|00006030| 54 68 69 73 20 69 6e 64 | 65 78 20 6d 75 73 74 20 |This ind|ex must |
|00006040| 62 65 20 69 6e 20 74 68 | 65 20 72 61 6e 67 65 20 |be in th|e range |
|00006050| 6f 6e 65 20 28 31 29 20 | 74 6f 20 74 68 65 20 63 |one (1) |to the c|
|00006060| 6f 75 6e 74 20 72 65 74 | 75 72 6e 65 64 20 62 79 |ount ret|urned by|
|00006070| 20 74 68 65 20 43 6f 75 | 6e 74 20 76 6f 69 63 65 | the Cou|nt voice|
|00006080| 73 20 66 75 6e 63 74 69 | 6f 6e 20 28 73 65 65 20 |s functi|on (see |
|00006090| 61 62 6f 76 65 29 2e 0d | 0d 3c 2d 20 76 6f 69 63 |above)..|.<- voic|
|000060a0| 65 0d 69 73 20 61 20 73 | 74 72 69 6e 67 20 28 6c |e.is a s|tring (l|
|000060b0| 65 6e 67 74 68 20 36 33 | 29 20 72 65 74 75 72 6e |ength 63|) return|
|000060c0| 69 6e 67 20 74 68 65 20 | 76 6f 69 63 65 20 6e 61 |ing the |voice na|
|000060d0| 6d 65 20 6f 6e 20 74 68 | 65 20 73 70 65 63 69 66 |me on th|e specif|
|000060e0| 69 65 64 20 69 6e 64 65 | 78 2e 0d 0d 44 6f 6e 27 |ied inde|x...Don'|
|000060f0| 74 20 61 73 73 75 6d 65 | 20 75 73 69 6e 67 20 69 |t assume| using i|
|00006100| 6e 64 65 78 20 31 20 72 | 65 74 75 72 6e 73 20 61 |ndex 1 r|eturns a|
|00006110| 6c 77 61 79 73 20 27 4d | 61 72 76 69 6e 27 2e 20 |lways 'M|arvin'. |
|00006120| 54 68 65 20 69 6e 64 65 | 78 20 69 73 20 74 68 65 |The inde|x is the|
|00006130| 20 6f 72 64 65 72 20 69 | 6e 20 77 68 69 63 68 20 | order i|n which |
|00006140| 74 68 65 20 76 6f 69 63 | 65 73 20 77 65 72 65 20 |the voic|es were |
|00006150| 66 6f 75 6e 64 20 69 6e | 20 74 68 65 20 61 70 70 |found in| the app|
|00006160| 6c 69 63 61 74 69 6f 6e | 20 61 6e 64 2f 6f 72 20 |lication| and/or |
|00006170| 53 79 73 74 65 6d 20 46 | 6f 6c 64 65 72 2e 20 41 |System F|older. A|
|00006180| 66 74 65 72 20 61 20 72 | 65 73 74 61 72 74 20 74 |fter a r|estart t|
|00006190| 68 69 73 20 6d 61 79 20 | 68 61 76 65 20 63 6f 6d |his may |have com|
|000061a0| 70 6c 65 74 65 6c 79 20 | 63 68 61 6e 67 65 64 2c |pletely |changed,|
|000061b0| 20 65 73 70 65 63 69 61 | 6c 6c 79 20 77 68 65 6e | especia|lly when|
|000061c0| 20 74 68 65 20 75 73 65 | 72 20 61 64 64 65 64 20 | the use|r added |
|000061d0| 76 6f 69 63 65 73 2e 0d | 57 68 65 6e 20 74 68 65 |voices..|When the|
|000061e0| 20 75 73 65 72 20 73 77 | 69 74 63 68 65 73 20 74 | user sw|itches t|
|000061f0| 6f 20 74 68 65 20 46 69 | 6e 64 65 72 20 61 6e 64 |o the Fi|nder and|
|00006200| 20 69 6e 73 74 61 6c 6c | 73 20 6f 72 20 72 65 6d | install|s or rem|
|00006210| 6f 76 65 73 20 76 6f 69 | 63 65 20 66 69 6c 65 73 |oves voi|ce files|
|00006220| 20 74 68 65 20 69 6e 64 | 65 78 20 76 61 6c 75 65 | the ind|ex value|
|00006230| 20 62 65 63 6f 6d 65 73 | 20 69 6e 76 61 6c 69 64 | becomes| invalid|
|00006240| 20 28 74 68 65 20 75 73 | 65 72 20 73 68 6f 75 6c | (the us|er shoul|
|00006250| 64 20 72 65 73 74 61 72 | 74 20 77 68 65 6e 20 64 |d restar|t when d|
|00006260| 6f 69 6e 67 20 74 68 69 | 73 29 2e 20 53 6f 2c 20 |oing thi|s). So, |
|00006270| 64 6f 6e 27 74 20 73 74 | 6f 72 65 20 74 68 65 20 |don't st|ore the |
|00006280| 69 6e 64 65 78 20 6f 66 | 20 61 20 70 61 72 74 69 |index of| a parti|
|00006290| 63 75 6c 61 72 20 76 6f | 69 63 65 2e 0d 0d 49 66 |cular vo|ice...If|
|000062a0| 20 79 6f 75 20 75 73 65 | 20 74 68 65 20 27 2a 27 | you use| the '*'|
|000062b0| 20 77 69 6c 64 63 61 72 | 64 20 61 73 20 74 68 65 | wildcar|d as the|
|000062c0| 20 76 6f 69 63 65 6e 61 | 6d 65 20 61 6e 64 20 79 | voicena|me and y|
|000062d0| 6f 75 20 72 65 61 6c 6c | 79 20 77 61 6e 74 20 74 |ou reall|y want t|
|000062e0| 6f 20 6b 6e 6f 77 20 69 | 74 73 20 72 65 61 6c 20 |o know i|ts real |
|000062f0| 6e 61 6d 65 2c 20 70 61 | 73 73 20 7a 65 72 6f 20 |name, pa|ss zero |
|00006300| 61 73 20 69 6e 64 65 78 | 20 61 6e 64 20 74 68 65 |as index| and the|
|00006310| 20 6e 61 6d 65 20 72 65 | 74 75 72 6e 65 64 20 69 | name re|turned i|
|00006320| 73 20 74 68 61 74 20 6f | 66 20 74 68 65 20 64 65 |s that o|f the de|
|00006330| 66 61 75 6c 74 20 76 6f | 69 63 65 2e 20 44 6f 6e |fault vo|ice. Don|
|00006340| 27 74 20 73 74 61 72 74 | 20 61 20 6c 6f 6f 70 20 |'t start| a loop |
|00006350| 77 69 74 68 20 7a 65 72 | 6f 2c 20 62 65 63 61 75 |with zer|o, becau|
|00006360| 73 65 20 79 6f 75 20 74 | 68 65 6e 20 77 69 6c 6c |se you t|hen will|
|00006370| 20 66 69 6e 64 20 74 68 | 65 20 73 61 6d 65 20 76 | find th|e same v|
|00006380| 6f 69 63 65 20 74 77 69 | 63 65 2e 0d 54 68 65 20 |oice twi|ce..The |
|00006390| 73 61 6d 65 20 67 6f 65 | 73 20 66 6f 72 20 77 68 |same goe|s for wh|
|000063a0| 65 6e 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 6b |en you w|ant to k|
|000063b0| 6e 6f 77 20 77 68 69 63 | 68 20 76 6f 69 63 65 20 |now whic|h voice |
|000063c0| 69 73 20 62 65 68 69 6e | 64 20 74 68 65 20 27 23 |is behin|d the '#|
|000063d0| 27 20 77 69 6c 64 63 61 | 72 64 2c 20 74 68 65 6e |' wildca|rd, then|
|000063e0| 20 75 73 65 20 2d 31 20 | 61 73 20 74 68 65 20 69 | use -1 |as the i|
|000063f0| 6e 64 65 78 20 76 61 6c | 75 65 2e 20 53 61 6d 65 |ndex val|ue. Same|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.